Re: Gtk -- trying to run pixmap example



ringo schrieb:

I downloaded gdk 2.0 and unzipped it. I've been compiling and looking at
the examples. I just tried to compile the pixmap example and I get an
error: config.h: No such file...
In the main directory that was created when I unzipped I see config.h.in
and config.h.win32, but no config.h . What do I need to do to fix this?
Thanks
Ringo



_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list


first make sure that the config.h of whatever you are compiling is in the include path -> compiler options

second, if the file is not there try to manualy copy the file config.h.win32 or config.h.in to config.h if you are using config.h.in (if compiling with automake etc. (./configure)) you have to replace all sections surounded with '@'
with their coresponding values.

but if all libs have successfully compiled and you are trying to compile an example, i guess you are not using the makefiles shiped with the source-tarball, so you have to modify your makefile or commandline for your compiler to include the directory where config.h is in (it depends also who is trying to include config.h [???]).

the common compiler switch is -I{IncludeDir} -> note that you have to replace {IncludeDir} with the directory where
config.h is in.

hope that helps a bit

Benjamin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]