SFML community forums
Help => General => Topic started by: maximumkj on February 27, 2020, 05:54:40 am
-
The errors i get is something about the libraries not found, and above that it says about incompability and something, if you need the full error to help me i will write it, right now i cant.
i downloaded the SFML GCC 5.1.0 TDM (SJLJ) - Code::Blocks - 32-bit
and for include and lib i wrote the ones inthe sfml folder. i didnt install it from terminal or anything,
i follow the steps on the tutorial but it still wont work
I would appreciate your help.
-
if you need the full error to help me i will write it
Yes, please.
-
g++ -Wall -std=c++14 -O2 -I/home/USER/SFML-2.5.1/include -c /home/USER/Documentos/SFML/SFML/main.cpp -o obj/Release/main.o
g++ -L/home/USER/SFML-2.5.1/lib -o bin/Release/SFML obj/Release/main.o -s -lsfml-graphics -lsfml-window -lsfml-system
/usr/bin/ld: skips /home/USER/SFML-2.5.1/lib/libsfml-graphics.a incompatible while searching for -lsfml-graphics
/usr/bin/ld: couldn't find -lsfml-graphics
/usr/bin/ld: skips /home/USER/SFML-2.5.1/lib/libsfml-window.a incompatible while searching for -lsfml-window
/usr/bin/ld: couldn't find -lsfml-window
/usr/bin/ld: skips /home/USER/SFML-2.5.1/lib/libsfml-system.a incompatible while searching for -lsfml-system
/usr/bin/ld: couldn't find -lsfml-system
collect2: error: ld returned 1 exit status
-
Aren't you mixing 32 and 64 bits?
-
Im not sure, im new to CodeBlocks
:-\
-
But wait... you're on Linux? You downloaded a Windows release.
-
Oh. I thought that version could work, since it didnt say anything about windows in it
im gonna try with the linux version :D
-
Yeah that was the problem i was using a Windows version, thanks for helping me! :)