LNK4197 in x64 build

LNK4197 in x64 build

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

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Hi,here is some sample code:http://dl.dropbox.com/u/6818298/A3DSensor.zipx32 builds without warning, x64 has warnings.Robert

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today