Please turn Full Compile Logging using
Settings->Compiler and Debugger->"Other"->Compiler logging = "Full command line".
The output will help finding cause of the error you are getting.
Since this is a link error the linker values in codeblocks needs verified.
What is in "Project" -> "Build Options" -> "Directories" -> "Linker"
What is in "Project" -> "Build Options" -> "Linker" -> "Link Libraries"
GTK+ Libraries that may be needed under "Link Libraries"
GLib
Pango
ATK
From URL
http://www.gtk.org/Note: The above way is the window user way.
See
http://www.gtk.org/tutorial/x111.html for the Linux way.
I have modified info from tutorial/x111.html for codeblocks use below:
Under "Project" -> "Build Options" -> "Compiler" -> "Other Options" try adding `pkg-config --cflags gtk+-2.0`
Note: The tick marks are needed and it must be that tick mark.
Under "Project" -> "Build Options" -> "Linker" -> "Other linker options" try adding
`pkg-config --libs gtk+-2.0`
Note: The tick marks are needed and it must be that tick mark.
Tim S