Author Topic: Linking to Libraries  (Read 12079 times)

modal

  • Guest
Re: Linking to Libraries
« Reply #15 on: October 13, 2012, 06:37:57 am »
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;
 :)          :)          :)          :)          :)          :)          :)          :)          :)          :)