User forums > Using Code::Blocks

Linking to Libraries

<< < (4/4)

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;
 :)          :)          :)          :)          :)          :)          :)          :)          :)          :)

Navigation

[0] Message Index

[*] Previous page

Go to full version