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.
I compiled it using command gcc -I/opt/gnome/include/gtk-1.2/gtk/ first.c
and got the error
first.c:1:29: gtk-1.2/gtk/gtk.h: No such file or directory
first.c: In function `main':
first.c:3: error: `GtkWidget' undeclared (first use in this function)
first.c:3: error: (Each undeclared identifier is reported only once
first.c:3: error: for each function it appears in.)
first.c:3: error: `window' undeclared (first use in this function)
first.c:4: error: stray '\' in program
first.c:4: error: stray '\' in program
first.c:5: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
first.c: At top level:
first.c:9: error: stray '\2' in program
how come gcc could not find the location of gtk.h (already specified by -I option).
when i issued locate gtk.h then the output shows the same location.
what does this means? how can i remove this error?
Distribution: SuSE 9.0, Red Hat 9.0, Fedora core 1
Posts: 70
Original Poster
Rep:
Thanks for your reply Megaman X,
I compiled with the command gcc you_source.c -o test `pkg-config --cflags --libs gtk+-2.0`
it reduced the errors, but still there are some..
first.c: In function `main':
first.c:5: error: stray '\' in program
first.c:5: error: stray '\' in program
first.c: At top level:
first.c:10: error: stray '\2' in program
what does this mean?
About anjuta.... i tried to install it form source while making it gave me an error saying
glib-mkenums command not found i have already placed this problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.