- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am developing a dll. All funktions are exported using a .def-file (no __declspec!). When I compile my dll in Release/x64 mode I get the LNK4197 linker waring (see http://msdn.microsoft.com/de-de/library/dt1zk962.aspx)
But I am sure theexport is not specified in multiple and different ways.What to do?
The full warning is:
ipo_78245obj.obj : warning LNK4197: Export "exp_func" wurde mehrmals angegeben; erste Angabe wird verwendet.
Robert
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The warning is telling thatduplicate names are being exported. If you provide the sample code, .DEF file and compilation command then we may be able to help you better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
here is some sample code:
x32 builds without warning, x64 has warnings.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The multiple version of symbols are generated for "A3DLibraryVersion" when /Qipo is used. I am investigating the issue.
You may use /Qip instead of /Qipo as a workarround.

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