SFML community forums
Bindings - other languages => C => Topic started by: yowo on July 03, 2012, 05:42:14 pm
-
I compiled the file with 'gcc -o sfml sfml.c -lsfml-graphics
and I get an undefined reference to every instance of an sf function.
-
If you compile C code that uses CSFML you should link against CSFML and not SFML. Moreover you'll need to link against the system, window and graphics modules if you use the latter (like you'll do it with the C++ version of SFML).