I just tried to compile some code using gtk+ 1.2.
The only gcc-invocation that compiles the code at all was
Code: Select all
gcc (...) `pkg-config --cflags --libs gtk+`
Included headers are <gtk/gtk.h> and <gdk/gdk.h>, but this should be irrelevant, after it is a compiler error.
I also tried this comand:
Code: Select all
gcc(...) `pkg-config --cflags gtk+` \ `pkg-config --libs gtk+`
though the directory it is complaining about does exist.
I read all kind of manuals and articles and chapters of books that i have on the topic, but
1. They all use different commands, headerfiles, versions of gtk to compile
2. Not one of them works (i tried all combinations, the two above are just the ones with the least errors).
I would post my code, if it helps, but after i get linker-errors it should be irrelevant - there must be some problem with the libs...
If someone here works with the same version of the library and knows the solution please tell me!