Linker Tools Warning LNK4197

export "exportname" specified multiple times; using first specification

An export is specified in multiple, different ways. The linker uses the first specification and ignores the rest.

Perhaps the same export is specified both on the command line (via export:) and in the .def file or listed twice in the .def file with different attributes.

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