Hello,
I'm trying to compile my project from Linux to Windows and the linker is giving me a few undefined references errors.
Using : SFML 2.3.2 for GCC 4.9.2 MinGW (DW2) - 32-bit
and compiling with i686-w64-mingw32-g++ (GCC) 5.3.1
i686-w64-mingw32-g++ -W -Wall -std=c++11 -Ofast Place.o Task.o Textbox.o Year.o main.o util.o -o main.exe -lsfml-graphics -lsfml-system
Textbox.o:Textbox.cpp:(.text+0x191): undefined reference to `_imp___ZNK2sf6StringcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEB5cxx11Ev'
Textbox.o:Textbox.cpp:(.text+0x40f): undefined reference to `_imp___ZN2sf6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6locale'
Textbox.o:Textbox.cpp:(.text+0x82e): undefined reference to `_imp___ZN2sf6StringC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6locale'
Textbox.o:Textbox.cpp:(.text+0xf64): undefined reference to `_imp___ZNK2sf6StringcvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEB5cxx11Ev'
main.o:main.cpp:(.text+0xc42): undefined reference to `_imp___ZN2sf4Font12loadFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE'
main.o:main.cpp:(.text+0x354e): undefined reference to `_imp___ZNK2sf5Image10saveToFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE'
collect2: error: ld returned 1 exit status
make: *** [main.exe] Error 1
Makefile:21: recipe for target 'main.exe' failed
Thanks for your help