Greetings,
I am in the process to get a purely Windows made project run under Linux. Most code is already compatible, but linking some required libraries causes issues.
All dynamic libraries I use are natively available in Fedora 29 and those link fine. However, one is custom made and I try to link it statically. The library is written in C++ and compiled with gcc 8.3.
So far, linking it with $linklib works fine. But some dependencies the .a file needs are not linking properly.
{$LinkLib m}
{$LinkLib stdc++}
{$LinkLib dCustomJoints}
are both required.
So far so good. However, I get the following error despite this:
Warning: linker: /usr/bin/ld: ./libdCustomJoints.a(dCustomJoint.cpp.o): undefined reference to symbol '_ZTVN10__cxxabiv117__class_type_infoE@@CXXABI_1.3'
Warning: linker: /usr/bin/ld: /lib64//libstdc++.so.6: error adding symbols: DSO missing from command line
I checked, and the libstdc++.so.6 exists, and also contains _ZTVN10__cxxabiv117__class_type_infoE, looked via grep.
My libstdc++ is of version 8.3.1-2.fc29. Same for the libstdc++-devel version.
I am currently clueless how to resolve this linking error.