Hey Texus
I can't use the default SJLJ libs because I'm collaborating with another project that uses DW2 MinGW.
So I compiled my own by using CMake on windows. No problem there.
But when I try to link the libs in the example TGUI login program, I get
Now, I understand that __imp__ is something to do with .dll's.
But I thought I am already supplying everything needed :
-ltgui-d -lsfml-graphics-d -lsfml-window-d -lsfml-system-d -lwsock32 -lwinmm -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt
I have looked with nm into the original libtgui-d.a and tgui-d.dll and the name mangling looks identical to the libs I have compiled.
Do you have any suggestions where I am going wrong ?
Thanks ! This static/dynamic stuff is so confusing.
I can't use the default SJLJ libs because I'm collaborating with another project that uses DW2 MinGW.
So I compiled my own by using CMake on windows. No problem there.
But when I try to link the libs in the example TGUI login program, I get
Code Select
tgui::EditBox::Ptr editBoxUsername = gui.get("Username");
Quote"||=== Build: Debug in tgui_test (compiler: GNU GCC Compiler) ===|"
obj\Debug\main.o||In function `main':|
C:\dev\TGUI-0.6\examples\tgui_test\main.cpp|98|undefined reference to `__imp___ZNK4tgui3Gui3getERKN2sf6StringE'|
C:\dev\TGUI-0.6\examples\tgui_test\main.cpp|99|undefined reference to `__imp___ZNK4tgui3Gui3getERKN2sf6StringE'|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Now, I understand that __imp__ is something to do with .dll's.
But I thought I am already supplying everything needed :
-ltgui-d -lsfml-graphics-d -lsfml-window-d -lsfml-system-d -lwsock32 -lwinmm -lstdc++ -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt
I have looked with nm into the original libtgui-d.a and tgui-d.dll and the name mangling looks identical to the libs I have compiled.
Do you have any suggestions where I am going wrong ?
Thanks ! This static/dynamic stuff is so confusing.