Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29257 Discussions

How to add Export command to a VS DLL project's link step to add symbol from a precompiled .OBJ file

anthonyrichards
New Contributor III
810 Views
I have a .DLL which requires linking in a precompiled object .OBJ from a third party which contains a symbol that must be exported.
How can you add the required export command to the link step within Visual Studio (I never use NMAKE) so that the DLL's export table contains the required additional symbol?
0 Kudos
2 Replies
Wendy_Doerner__Intel
Valued Contributor I
810 Views

I think you want the /DEF linker command. See this link to the Microsoft website to setup the export variable names. And this link to see how to use /Def to specify the file to import Export names from.

This is assuming that the the .obj was not written with in our compiler and so you can not use DLLExport/Import commands in the source.

------

Wendy

Attaching or including files in a post

0 Kudos
anthonyrichards
New Contributor III
810 Views
Thanks. It is a C-program.

Under project properties...configuration properties...linker...command line, I added /export:theexportname and that appears to have worked!
0 Kudos
Reply