我是 minGW 的新手。我正在尝试使用 minGW 编译omniORB 4.2.3,以便将库与我在 Dev-CPP 5.11 上开发的应用程序链接起来。我对两者都使用相同的工具链。gcc 版本是 4.9.2 (tdm64-1)。我尽可能到处搜索并找到链接器选项-municode
。但错误仍然存在。我也尝试了包装解决方案。
这是错误的行:
+ gcc -oomnicpp.exe -mthreads -Wl,--enable-runtime-pseudo-reloc -municode -L../../../../../lib/x86_win32 cexp.o cccp.o config.o alloca.o index.o
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_w.o): In function `wmain':
C:/crossdev/src/mingw-w64-v3-git/mingw-w64-crt/crt/crt0_w.c:23: undefined reference to `wWinMain'
collect2.exe: error: ld returned 1 exit status
感谢帮助。