Re: RE: GTK+ and MinGw..............



Suresh Kumar writes:

I set the "include" path in the PATH variable as follows:

Path = c:\MinGw\bin;c:\gtk2dev\bin;c:\gtk2dev\program files\common files\gtk\2.0\lib;c:\gtk2dev\program 
files\common files\gtk\2.0\bin;c:\gtk2dev\include

Egads. Why do you add the *include* directories to your *PATH*? PATH
is the list of folders from where Windows looks for executable
programs and DLLs. It has nothing to do with looking for header files.

You should pass the folders from which to look for header files to the
compiler using -I switches. Try reading the documentation for gcc (or
any other Unix-style command-line C compiler).

This is really very very basic gcc usage knowledge.

Still i got the same error. (gtk\gtk.h: No such file or 
directory)

Does the message really use a backslash? Do you use a backslash in the
#include line in your sources? Don't. Use gtk/gtk.h. It will work as
well, and make your program portable to Unix, too. (I hope portability
is one of the reason you chose GTK+ in the first place?)

--tml



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