By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 916 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

can we export a class using a .def file? w/o using __declspec

P: n/a
hi all,
i have a problem: i have two core procssing libraries which are used by
my algorithms library. now all three libs are to be converted into
dlls. but i cant use __declspec since tht would make my code microsoft
specific and would take lot of effort to add code to keep it platform
independent. so the only choice i have is to use a .def file to
specific which classes get exported.

now i could not find any literature on how to add the class names in
the EXPORTS section of the .def file. can u please tell me how i can do
it?

any help will be appreciated. thank u in advance!

regards,
siddharth

Sep 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
siddharth wrote:
hi all,
i have a problem: i have two core procssing libraries which are used by
my algorithms library. now all three libs are to be converted into
dlls. but i cant use __declspec since tht would make my code microsoft
specific and would take lot of effort to add code to keep it platform
independent. so the only choice i have is to use a .def file to
specific which classes get exported.

now i could not find any literature on how to add the class names in
the EXPORTS section of the .def file. can u please tell me how i can do
it?

any help will be appreciated. thank u in advance!
You can ask on a Microsoft group. See the list in this FAQ:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Sep 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.