- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. It is a C-program.
Under project properties...configuration properties...linker...command line, I added /export:theexportname and that appears to have worked!
Under project properties...configuration properties...linker...command line, I added /export:theexportname and that appears to have worked!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page