Specifications

Linker Tools Messages Page 27 of 32
The linker was unable to find your .PDB file. Copy it into the directory that contains object/library.
Return to Main Linker Error Page
Linker Warnings LNK4102 to LNK4549
Linker Tools Warning LNK4102
export of deleting destructor symbol name; image may not run correctly
The program has attempted to export a deleting destructor. The resulting delete may occur across a
DLL boundary such that a process can free memory that it does not own. Make sure that the given
symbol is not listed in your .DEF file, and that the symbol is not listed as an argument of the
/IMPORT or /EXPORT option in the linker command line.
Linker Tools Warning LNK4103
import of deleting destructor "symbol name"; image may not run correctly
The program has attempted to import a deleting destructor. The resulting delete may occur across a
DLL boundary such that a process can free memory that it does not own. Make sure that the given
symbol is not listed in your .DEF file, and that the symbol is not listed as an argument of the
/IMPORT or /EXPORT option in the linker command line.
Linker Tools Warning LNK4104
export of symbol "symbol" should be PRIVATE
The symbol can be one of the following:
DllRegisterServer
DllRegisterServerEx
DllUnregisterServer
DllGetClassObject
DllCanUnloadNow
This warning is emitted when you are building an import library for a DLL and export one of the
above functions without specifying it as PRIVATE in the module-definition file. In general these
functions are exported for use only by OLE. Placing them in the import library can lead to unusual
behavior when a program linked to the library incorrectly makes calls to them.
Linker Tools Warning LNK4105
no argument specified with option option; ignoring switch
This warning occurs only when the /LIBPATH option is set. If no directory is specified with this
option, then the linker ignores this option and generates this warning message. If you do not need to
override the existing environmental library settings, remove the /LIBPATH option from the linker
command line. If you want to use an alternate search path for libraries, specify the alternate path
following the /LIBPATH option. For example: link /libpath:c:\foo\lib bar.obj would direct
the linker to search for the required libraries in c:\foo\lib before searching in the default locations.
Linker Tools Warning LNK4106
"section name" section discarded due to "option" specification
The option caused the linker to discard the section.
Linker Tools Warning LNK4107