Skip to content

DLL linking fails with MinGW32 #719

@bcoconni

Description

@bcoconni

Discussed in #718

Originally posted by Josko692 September 9, 2022
Hello, I work on windows 10 with mingw64 tools (gcc, g++, mingw32-make).
When I passed to the v1.1.12 of JSBSim I decided to use the shared Library.
I use the CMakeLists.txt of the project. My cmake line is :

cmake .. -G"MinGW Makefiles" -DCMAKE_CXX_FLAGS_DEBUG="-g -Wall" -DCMAKE_C_FLAGS_DEBUG="-g -Wall" -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DBUILD_PYTHON_MODULE=OFF -DCMAKE_INSTALL_PREFIX=../install

There is no problem with the compilation of the dll but when linking. Apparently there is a problem with the FGOutput files (in src/models/) and I can't link to get JSBSim.exe. The script stops on an error and does not go to the end.
Did anyone manage to compile/link the V1.1.12 version using the dll ?

I attach a capture with the errors. Thank you for your help.
Capture

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions