Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

LNK4197 in x64 build

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

0 Kudos
Reply