Unresolved external symbol error occurring only in 64-bit mode and not in 32-bit build

后端 未结 4 971
慢半拍i
慢半拍i 2021-01-12 13:04

I have a VC++ code (built using VS2008), which makes use of some static libraries (*.lib files linked statically during compile time).

For ease of understanding let\

4条回答
  •  情话喂你
    2021-01-12 13:43

    That fatal error LNK1112 indicates that you are indeed linking something in 32-bit mode when trying to create a 64-bit executable.

    The image 2) shows only some but not all projects in 64-bit mode. This sounds like trouble!

    Perhaps the problem lies in your LIB directory? Usually my projects (VS2010 here) differ at:

    Project Properties -> VC++ Directories -> Library Directories
    

    which points to lib32 or lib64 directory depending on the target architecture.

提交回复
热议问题