c++ - Visual Studio: which source file includes a particular library (with "pragma comment")? -


edit:solved james mcnellis' suggestion, led me offending library. 1 hadn't checked dumpbin.

i'm building visual studio 2013 project links against static libraries using "#pragma comment" instead of listing libraries in project properties. after replacing libraries new versions, i'm getting link error because it's still trying find of old libraries, e.g. can't find "library_v9.lib" when should linking "library_v12.lib" instead. how can find old libraries being requested? here's i've tried:

  • deleting objects, etc. , rebuilding scratch.

  • searching "#pragma comment" doesn't work because it's built several layers of macros, , version number obtained _msc_ver "9" , "12" never appear anywhere in source.

  • running dumpbin /directives on libraries linked executable. refer correct "12" library versions.

the linker has /verbose switch cause print out detailed log of libraries opening, symbols searching for, , why searching symbols.

typically, straightforward way debug sort of issue add /verbose linker options, open build log in text editor, , search library name or symbol in you're interested. in case, search "library_v9.lib". linker tell caused open library.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -