ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
First, I'm German, therefore excuse my English. Second, I know C++ but I don't know a lot about compiling code on Linux.
My distribution is SuSE Linux 9.0.
My problem: Whenever I compile anything it says that the libraries needed are missing and that I might wanna think about pointing my PKG_CONFIG_PATH to the right folder.
I assume that whenever I compile something, the compiler checks the PKG_CONFIG_PATH which contains several .pc files. These indicate where to find the libraries for the program.
Well, here's an example. I tried to compile the Window-Example from the GTK Tutorial on the gtk website. I compiled it with
gcc window.c -o window `pkg-config --cflags --libs gtk+-2.0`
The output was:
window.c:1:17: gtk.h: No such file or directory
window.c: In function `main':
window.c:5: error: `GtkWidget' undeclared (first use in this function)
... the rest are errors becuase it doesn't have the library.
But my PKG_CONFIG_PATH variable is set to the right path. Is it possible that the .pc file doesn't have the right paths configured?
Note that you might even see two of the *.pc files if you installed a newer version of gtk+ in another directory and kept the old installation as well. Always use the newer version. If you just see on *.pc file, then use that one.
you are mixing libraries. I've said this more and more recently so here goes again
Gtk is NOT Gtk2
gtk.h is the header file for gtk, gtk2.h is the header file for gtk2. therefore your code clearly is Gtk, and NOT Gtk2, in whcih case you need to obtain the compilation flags from gtk-config (from the gtk-devel package, not pkg-config.
and .. Radiohead? pah.. just plagarists....
Last edited by acid_kewpie; 01-25-2004 at 09:09 AM.
not necessarily no, it just drives me mad that simply because 95% of radiohead fans have never heard real postrock music they worship radiohead as something amazingly original, when they are just so far from it...
Are you saying that they are simply succesful because they're mainstream? I don't have a problem listening to them just because of that. Pretty much every band that I like, I started liking because some friend of mine loves it and told me how great that kind of music is. Therefore, the reason that I don't know the bands you're talking about is because nobody I know listens to them (or told me about them). That doesn't mean that they are bad but they are obviously not too popular. Just because Radiohead became a mainstream band, that doesn't mean that everybody who actually enjoys music instead of watching the top 20 charts everyday should stop listening to them.