SFML community forums

Bindings - other languages => C => Topic started by: yowo on July 03, 2012, 05:42:14 pm

Title: undefined reference to 'sf*'
Post 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.
Title: Re: undefined reference to 'sf*'
Post by: Hiura on July 03, 2012, 06:07:15 pm
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).