User forums > Using Code::Blocks
Compiling GTK+ code
Gamegoofs2:
How do I link the GTK+ libraries with Code blocks so that I can program with GTK?
MortenMacFly:
--- Quote from: Gamegoofs2 on October 28, 2009, 01:09:06 am ---How do I link the GTK+ libraries with Code blocks so that I can program with GTK?
--- End quote ---
Go to the project options, linker tab and add the needed libraries. There should also be a GTK project wizard available (under file -> new project) if you've installed the scripted wizard plugin.
More information is not possible as you forgot to state, platform, OS, (C::B/OS) version etc...
Gamegoofs2:
Oops, sorry. I'm running on Vista and my version of Code blocks is 8.02.
Saturday night I compiled gtk code properly, but when I got on Monday and tried to compile the same code I got errors like the gtk header wasn't there. I used the wizard to set up gtk I thought.
I'll try what you said though. Thanks.
Gamegoofs2:
I tried the wizard and the project > build options > Linker neither of them worked.
When I compiled doing the wizard way it compiled but I got this error:
This application has failed to start because libglib-2.0-0.dll was not found. Re-installing the application may fix this problem.
Help please!
Thanks
oBFusCATed:
Place the gtk dlls alongside (in the same directory) you executable or in a directory on your PATH (not sure about that this will work)
Navigation
[0] Message Index
[#] Next page
Go to full version