Howto ClanLib + Code::Blocks

Thursday June 7th, 2012By: CyrIng

File → New → Project… : Empty project

File → New → Empty file

Name this empty file ″main.cpp

Project → Properties → Project’s build options

Add Linker settings → Link libraries :

clan23App 
clan23GL 
GL 
Xrender 
clan23Display 
X11 
png 
jpeg 
freetype 
z 
bz2 
fontconfig 
clan23Core

Compiler settings → Other options & Linker settings → Other linker options : -pthread

Compiler settings → Compiler Flags → Categories :

[X] Have g++ follow the coming c++0x ISO [-std=c++0x]

[X] Intel Core2 [-march=core2]

Search directories → Compiler : /usr/include/ClanLib-2.3

Properties → Build targets → Debug & Release → Type : GUI application

EOF