Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Linking to Libraries
« previous
next »
Send this topic
Print
Pages:
1
[
2
]
All
Go Down
Author
Topic: Linking to Libraries (Read 12140 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.
In example I found they had included type bool, not in GNU C! Quick fix: int true=1,false=0;
Logged
Send this topic
Print
Pages:
1
[
2
]
All
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Linking to Libraries