You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to build this project w/ MinGW on Windows 10
But, it seems failed when linking library
How can I solve it?
Thanks
$ cmake --build --preset release
[1/2] Linking CXX shared library lib\libOpenOrCadParser.dll
FAILED: lib/libOpenOrCadParser.dll lib/libOpenOrCadParser.dll.a
C:\windows\system32\cmd.exe /C "cd . && D:\msys64\mingw64\bin\x86_64-w64-mingw32-g++.exe -O3 -DNDEBUG -shared -o lib\libOpenOrCadParser.dll -Wl,--out-implib,lib\libOpenOrCadParser.dll.a -Wl,--major-image-version,0,--minor-image-version,1 @CMakeFiles\OpenOrCadParser.rsp&& C:\windows\system32\cmd.exe /C "cd /D D:\tools\ECAD\OpenOrCadParser\build\lib && C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file D:/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 -targetBinary D:/tools/ECAD/OpenOrCa
dParser/build/lib/libOpenOrCadParser.dll -installedDir D:/tools/ECAD/OpenOrCadParser/build/vcpkg_installed/x64-mingw-dynamic/bin -OutVariable out""
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/CMakeFiles/OpenOrCadParser.dir/__/src/StreamFactory.cpp.obj (symbol from plugin):(.gnu.linkonce.t._ZTVN4OOCP10DataStreamE[_ZTVN4OOCP10DataStreamE]+0x0): multiple def
inition of `VTT for OOCP::DataStream'; lib/CMakeFiles/OpenOrCadParser.dir/__/src/GenericParser.cpp.obj (symbol from plugin):(.gnu.linkonce.t._ZTVN4OOCP10DataStreamE[_ZTTN4OOCP10DataStreamE]+0x0): first defined hereD:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/CMakeFiles/OpenOrCadParser.dir/__/src/StreamFactory.cpp.obj (symbol from plugin):(.gnu.linkonce.t._ZTVN4OOCP10DataStreamE[_ZTVN4OOCP10DataStreamE]+0x0): multiple definition of `vtable for OOCP::DataStream'; lib/CMakeFiles/OpenOrCadParser.dir/__/src/GenericParser.cpp.obj (symbol from plugin):(.gnu.linkonce.t._ZTVN4OOCP10DataStreamE[_ZTTN4OOCP10DataStreamE]+0x0): first defined hereD:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/CMakeFiles/OpenOrCadParser.dir/__/src/StreamFactory.cpp.obj (symbol from plugin):(.gnu.linkonce.t._ZTVN4OOCP10DataStreamE[_ZTVN4OOCP10DataStreamE]+0x0): multiple definition of `construction vtable for std::istream-in-OOCP::DataStream'; lib/CMakeFiles/OpenOrCadParser.dir/__/src/GenericParser.cpp.obj (symbol from plugin):(.gnu.linkonce.t._ZTVN4OOCP10DataStreamE[_ZTTN4OOCP10DataStreamE]+0x0): first defined hereD:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: lib/CMakeFiles/OpenOrCadParser.dir/__/src/StreamFactory.cpp.obj (symbol from plugin):(.gnu.linkonce.t._ZTVN4OOCP10DataStreamE[_ZTVN4OOCP10DataStreamE]+0x0): multiple definition of `construction vtable for std::basic_ifstream<char, std::char_traits<char> >-in-OOCP::DataStream'; lib/CMakeFiles/OpenOrCadParser.dir/__/src/GenericParser.cpp.obj (symbol from plugin):(.gnu.linkonce.t._ZTVN4OOCP10DataStreamE[_ZTTN4OOCP10DataStreamE]+0x0): first
defined here
lto-wrapper.exe: warning: using serial compilation of 12 LTRANS jobs
lto-wrapper.exe: note: see the '-flto' option documentation for more information
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export _ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_EC1ERKS5_S8_: symbol wrong type (4 vs 3)
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered:
The compiler error suggests a missing destructor that I added in #129. Probably more issues arise when the compiler proceeds but I don't have a working MinGW setup that I can test with.
In case you want to contribute it would be beneficial to have a CI build with MinGW.
I tried to build this project w/ MinGW on Windows 10
But, it seems failed when linking library
How can I solve it?
Thanks
The text was updated successfully, but these errors were encountered: