Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: 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?
-
How do I link the GTK+ libraries with Code blocks so that I can program with GTK?
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...
-
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.
-
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
-
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)
-
How come it worked once then and stopped working? How do I get it to work with out placing the .DLLs in the same file?
-
How come it worked once then and stopped working? How do I get it to work with out placing the .DLLs in the same file?
Long Answer: Learn how to program under windows.
Short Answer: Put DLLs in a folder that is in the PATH; NOTE, this method has drawbacks!!
Tim S.