Leo Przybylski writes:
> my gtk is in /usr/win32, so I compile with the command-line
When you say /usr/win32, do you mean that you have on your current
drive a top-level folder called \usr? Or is that a Cygwin path,
corresponding to some completely different Windows path?
> /mingw/bin/mingw32-gcc -I/usr/win32/include/gtk-2.0 -c test.c
>
> I continue to get an error that says 'test.c:1:21: gtk/gtk.h: No such
> file or directory'
If /usr/win32 is a Cygwin path, the mingw gcc doesn't see it.
Besides, you will also need the (equivalent of) -I
/usr/win32/lib/glib-2.0/include to get GLib's machine-dependent
glibconfig.h. And maybe the path to the atk and Pango headers. It's
easiest to use pkg-config, and say:
/mingw/bin/mingw32-gcc `pkg-config --cflags gtk+-2.0` -c test.c
(When you get to the point that you try to run a program you have
compiled, you will notice that GTK tells you also to use the
-mms-bitfields switch.)
--tml
|