I have a program that compiles without errors on Linux, but when I compile it for Windows using MinGW, it cannot work because it says that it needs some DLL next to it. So I decided to statically link it, but it throws some errors:
/usr/i586-mingw32msvc/lib/libsfml-window-s.a(WindowImplWin32.o):WindowImplWin32.cpp:(.text+0x146e): undefined reference to `__Unwind_Resume'
/usr/i586-mingw32msvc/lib/libsfml-window-s.a(WindowImplWin32.o):WindowImplWin32.cpp:(.text+0x17d0): more undefined references to `__Unwind_Resume' follow
/usr/i586-mingw32msvc/lib/libsfml-window-s.a(WindowImplWin32.o):WindowImplWin32.cpp:(.eh_frame+0x12): undefined reference to `___gxx_personality_v0'
/usr/i586-mingw32msvc/lib/libsfml-window-s.a(Joystick.o):Joystick.cpp:(.eh_frame+0x11): undefined reference to `___gxx_personality_v0'
collect2: ld returned 1 exit status
It seems to have some external dependencies. What is it and how can I connect them?
Edit:
Here is what I entered on the command line:
i586-mingw32msvc-g ++ "./main.cpp" -o "./win32.exe" / usr / i 586-mingw32msvc / lib / libsfml-graphics-sa / usr / i586-mingw32msvc / lib / libsfml-window -sa /usr/i586-mingw32msvc/lib/libm.a/usr/i586-mingw32msvc/lib/libmsvcr90.a
Help will be appreciated.
source
share