Ok, j'ai donc compilé comme ceci:
i586-mingw32msvc-g++ *.cpp -L /usr/i586-mingw32msvc/bin/sfml-audio-2.dll /usr/i586-mingw32msvc/bin/sfml-graphics-2.dll /usr/i586-mingw32msvc/bin/sfml-system-2.dll
J'ai lu sur certains sites qu'il fallait mettre tous les .dll dans le dossier ou se trouve l'executable, ce que j'ai fait, mais il avait l'air de merder encore plus. Donc tous mes .dll se trouve dans le repertoire à mettre: /usr/i586-mingw32mscv/bin.
Je compile, et voici ce qu'il me donne:/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/libstdc++.a(stubs.o):(.text+0x160): multiple definition of `_powf'
/tmp/ccES6eRT.o:Brain.cpp:(.text$powf[_powf]+0x0): first defined here
/tmp/ccES6eRT.o:Brain.cpp:(.text+0x341): undefined reference to `__imp___ZN2sf5Mouse15isButtonPressedENS0_6ButtonE'
/tmp/ccES6eRT.o:Brain.cpp:(.text+0x356): undefined reference to `__imp___ZN2sf5Mouse11getPositionERKNS_6WindowE'
/tmp/ccARR2FE.o:Game.cpp:(.text+0x7df): undefined reference to `__imp___ZN2sf5Mouse11getPositionERKNS_6WindowE'
/tmp/ccARR2FE.o:Game.cpp:(.text+0x88f): undefined reference to `__imp___ZN2sf5Mouse11getPositionERKNS_6WindowE'
/tmp/ccAZXOI2.o:main.cpp:(.text+0x29b): undefined reference to `__imp___ZN2sf9VideoModeC1Ejjj'
/tmp/ccAZXOI2.o:main.cpp:(.text+0x3e7): undefined reference to `__imp___ZN2sf6Window5closeEv'
/tmp/ccAZXOI2.o:main.cpp:(.text+0x572): undefined reference to `__imp___ZN2sf6Window9pollEventERNS_5EventE'
/tmp/ccAZXOI2.o:main.cpp:(.text+0x5d9): undefined reference to `__imp___ZN2sf6Window7displayEv'
/tmp/ccAZXOI2.o:main.cpp:(.text+0x5ed): undefined reference to `__imp___ZNK2sf6Window6isOpenEv'
/tmp/ccyjc1wh.o:Menu.cpp:(.text+0x42d): undefined reference to `__imp___ZN2sf5Mouse11getPositionERKNS_6WindowE'
/tmp/ccqWi9LI.o:MenuModule.cpp:(.text+0x242): undefined reference to `__imp___ZN2sf5Mouse11getPositionERKNS_6WindowE'
/tmp/cc8rEyMa.o:MenuOptions.cpp:(.text+0x3e0): undefined reference to `__imp___ZN2sf5Mouse11getPositionERKNS_6WindowE'
/tmp/cckJ6zRB.o:MenuSuccess.cpp:(.text+0x3e0): undefined reference to `__imp___ZN2sf5Mouse11getPositionERKNS_6WindowE'
collect2: ld returned 1 exit status
C'est un peu indigeste comme erreur, une idée ?
Partager