Luis
Luis

Reputation: 1828

I have VS C++ Express. Is there a way to create .DEF files?

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!!!

Upvotes: 0

Views: 802

Answers (2)

Reputation:

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

Upvotes: 0

ChrisW
ChrisW

Reputation: 56123

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).

Upvotes: 6

Related Questions