MinGW-W64 linker skipping incompatible files when searching for third-party static libraries

后端 未结 2 1261
说谎
说谎 2021-01-12 06:21

I\'m on Windows 7 64-bit, and I\'m compiling with g++ from MinGW-W64.

I\'m trying to compile an application that I wrote on a Unix computer. I\'m running into proble

相关标签:
2条回答
  • 2021-01-12 06:52

    From the message dumped from objdump.exe, the lib you need to link with is 32-bit, and the *.o files generated from the gcc (x64) is 64-bit, so is incompatible. I think you need to install MinGW 32-bit version.

    0 讨论(0)
  • 2021-01-12 06:54

    The problem was likely that the libraries were compiled with VC++, so they apparently aren't compatible with GCC. They link fine using Microsoft's link.exe.

    0 讨论(0)
提交回复
热议问题