Linker Tools Warning LNK4197
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Linker Tools Warning LNK4197.
export 'exportname' specified multiple times; using first specification
An export is specified in multiple and different ways. The linker uses the first specification and ignores the rest.
If you are rebuilding the C run-time library, you can ignore this message.
If an export is specified exactly the same way multiple times, the linker will not issue a warning.
For example, the following contents of a .def file would cause this warning:
EXPORTS functioname NONAME functioname @10
To fix by checking the following possible causes
The same export is specified both on the command line (through export:) and in the .def file
The same export is listed twice in the .def file with different attributes.