News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Linking to Libraries

Started by racer319, May 01, 2012, 10:08:01 PM

Previous topic - Next topic

modal

I had the same problem. The problem is the compile line be sure
to also include (without backquotes) something like: -lSDL_gfx    e.g. here is my build line from Geany:
gcc -Wall  `sdl-config --cflags --libs` -lSDL_gfx -lm -o "%e" "%f";
where %e is the compiled name and %f is the object file name.  Seems the documentation is fragmented.
One alternative is cairo graphics for better control, smoothing, and registered primitives. :D
In example I found they had included type bool, not in GNU C! Quick fix:  int true=1,false=0;
:)          :)          :)          :)          :)          :)          :)          :)          :)          :)