Linker Tools Warning LNK4105

 

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 LNK4105.

no argument specified with option 'option'; ignoring option

This warning occurs only when the /LIBPATH option is set. If no directory is specified with this option, then the linker ignores the 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.

link /libpath:c:\filepath\lib bar.obj  

would direct the linker to search for the required libraries in c:\filepath\lib before searching in the default locations.

Show: