Skip to content
This repository was archived by the owner on May 31, 2026. It is now read-only.
This repository was archived by the owner on May 31, 2026. It is now read-only.

Does it support MinGW? #128

Description

@i-am-neet

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 here
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 `vtable for OOCP::DataStream'; lib/CMakeFiles/OpenOrCadParser.dir/__/src/GenericParser.cpp.obj (symbol from plugin):(.gnu.linkonce.t._ZTVN4OOCP10DataStreamE[_ZTTN4OOCP10DataStreamE]+0x0): first defined here
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 `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 here
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 `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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions