16
General / Compiling program on Linux
« on: August 09, 2013, 09:38:33 am »
I'm following the SFML 2.0 tutorial for testing a program on Linux, but I'm getting the following error. I downloaded the precompiled SFML 2.1 32bit for Linux.
command:
result:
command:
g++ test.o -o test -L/home/crumb/sfml2.1-dev/lib -lsfml-network
result:
/usr/bin/ld:/home/crumb/sfml2.1-dev/lib/libsfml-network.so: file format not recognized; treating as linker script
/usr/bin/ld:/home/crumb/sfml2.1-dev/lib/libsfml-network.so:1: syntax error
collect2: ld returned 1 exit status
/usr/bin/ld:/home/crumb/sfml2.1-dev/lib/libsfml-network.so:1: syntax error
collect2: ld returned 1 exit status