ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is with a fresh install of Codeblocks from apt on linux mint 17.3. I did make sure to install libgtk-3-dev and I already tried following this suggestion, which is the only other suggestion I have been able to find. I am still getting the "gtk/gtk.h: No such file or directory" error. This is just with trying to compile the "Hello World" program that Codeblocks loads for a new GTK+ project.
I'm a little confused with your suggestion. Are you suggesting that I compile the program from terminal rather than using Codeblocks to compile the program? Or should I be inputting the code you gave me into Codeblocks somewhere so that Codeblocks will compile it? If the latter, where should I be adding the code?
I'm a little confused with your suggestion. Are you suggesting that I compile the program from terminal rather than using Codeblocks to compile the program? Or should I be inputting the code you gave me into Codeblocks somewhere so that Codeblocks will compile it? If the latter, where should I be adding the code?
I am not sure about Code::Blocks (I've never used it either), but you certainly can compile it in terminal.
In the IDE you probably can put these options somewhere, where you click "compile" or "build".
The link in my original post suggests placing those commands in Codeblocks, but that did not work for me. The person that made that suggestion also said that Anjuta is not nearly as polished as Codeblocks, but maybe I'll try it if I can't get Codeblocks to work.
The link in my original post suggests placing those commands in Codeblocks, but that did not work for me. The person that made that suggestion also said that Anjuta is not nearly as polished as Codeblocks, but maybe I'll try it if I can't get Codeblocks to work.
I tried a couple of years ago and it was okay. It's one of two IDEs I've tried though, the other being Geany.
the issue with ""gtk/gtk.h:" is that it is dependant on gtk2 or 3 and you have to spiffy what one is used
/usr/include/gtk+-3/gtk/gtk.h
/usr/include/gtk+-3/gdk
and
/usr/include/gtk+-2/gtk/gtk.h
/usr/include/gtk+-2/gdk
hence the use of the `pkg-config --libs gtk+-3.0` pointer
this is even worse when the older gtk1 code tossed into the mix
Sometimes I hate computers. I just tried putting them in again and this time it worked. I really don't know what I did differently since before I even tried using copy/paste to make sure I wasn't mistyping it. I guess I did something equivalent to "turning it off and back on again."
Sometimes I hate computers. I just tried putting them in again and this time it worked. I really don't know what I did differently since before I even tried using copy/paste to make sure I wasn't mistyping it. I guess I did something equivalent to "turning it off and back on again."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.