LNK1318: Unexpected PDB error; OK (0)

后端 未结 9 1766
借酒劲吻你
借酒劲吻你 2021-02-12 14:30

I\'m trying to link against a library (libcef_wrapper_dll.lib) that was built with the /MDd flag. My application is build with /MDd and /CLR so should be compatible. The proje

9条回答
  •  逝去的感伤
    2021-02-12 15:14

    If using /MP or /MDd with MSBuild, also use the /Zf compiler option. (See https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1318 )

    Other troubleshooting steps for LNK1318:

    • Do a full Clean/Rebuild
    • Restart mspdbsrv.exe
    • Turn off antivirus checks in your project directories.
    • Change the Debug Information Format to /C7 or None
    • Try building with /property:_IsNativeEnvironment=true

提交回复
热议问题