Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.

LNK4197 in x64 build

Robert_Kuhn
Beginner
157 Views
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
0 Kudos
3 Replies
Om_S_Intel
Employee
157 Views
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.
Robert_Kuhn
Beginner
157 Views
Hi,
here is some sample code:
x32 builds without warning, x64 has warnings.
Robert
Om_S_Intel
Employee
157 Views

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