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

S

siddharth

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
 
M

mlimber

siddharth said:
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-lite/how-to-post.html#faq-5.9

Cheers! --M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top