`WinMainCRTStartup和其他一些函数的多重定义

时间:2016-08-01 09:49:34

标签: c++ windows mingw-w64

在我将带有库和编译器的文件夹复制到笔记本电脑并设置项目后,我遇到了以下错误:

C:\PCL\3rdParty\VTK\bin\vtkEncodeString-6.0.exe: In function `WinMainCRTStartup':
/home/ruben/mingw-w64/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:154: multiple definition of `WinMainCRTStartup'
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o:/home/ruben/mingw-w64/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:154: first defined here
C:\PCL\3rdParty\VTK\bin\vtkEncodeString-6.0.exe: In function `mainCRTStartup':
/home/ruben/mingw-w64/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:182: multiple definition of `mainCRTStartup'
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o:/home/ruben/mingw-w64/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:182: first defined here
C:\PCL\3rdParty\VTK\bin\vtkEncodeString-6.0.exe: In function `main':
C:/pcldep/VTK6.0.0/Utilities/EncodeString/vtkEncodeString.cxx:151: multiple definition of `main'
obj\Release\main.o:C:\Users\hostles\Documents\3DF_oprav/main.cpp:28: first defined here
C:\PCL\3rdParty\VTK\bin\vtkEncodeString-6.0.exe:crtexe.c:(.CRT+0x8): multiple definition of `mingw_pcppinit'

我花了一个小时寻找解决方案,但没有成功。

有人可以建议我做错了吗?感谢。

0 个答案:

没有答案