tags:

views:

158

answers:

2

I would be extremely appreciative if anybody can help me. I am learning C++ and I have been trying figure this one out.

Basically, VS C++ Express does not come with the .DEF template. What other way can I go about creating this file?

Is there a parameter I can set in VS so that the linker can create this on the fly?

Thanks!!!

+6  A: 

You can find the syntax of a DF file defined in places like

The bottom of the first link also mentions alternatives to DEF files (e.g. the __declspec(dllexport) directive).

If you don't have a template to create a DEF file, you can create the file manually using your text editor (using the syntax defined above).

After you've created it, then add it to your project's linker options (so that the linker uses it).

ChrisW
A: 

Create it manually and name it yourcurrentproject.def and add export symbols in it.