Closed dehesselle closed 8 years ago
I think it is because you are making a DLL and the symbols aren't exported. I think this is only an issue on Windows.
This should be fixed now. I'll have to add a CI test for DLL linking. Thanks for the report.
Thanks - it works now as expected!
I'm using mingw-w64 on msys2 and
cmake -G "Unix Makefiles"
. Thenmake
fails to linkpondertest.exe
:The contents of
${MY_BUILD_DIR}/test/CMakeFiles/pondertest.dir/link.txt
is:I can fix the build by replacing
../libponder.dll.a
with../msys-ponder.dll
and adding../CMakeFiles/ponder.dir/src/util.cpp.o
just before-o pondertest.exe
:But I'm out of my depth here, I don't understand why I had to link in
../CMakeFiles/ponder.dir/src/util.cpp.o
- isn't this object supposed to be supplied by the DLL (I checked${MY_BUILD_DIR}/CMakeFiles/ponder.dir/link.txt
and it's there)?