On Tue, 08 Aug 2006 16:19:52 -0500, Benjamin Esham wrote: > Hello all, > ...Whenever I try to compile Pan I get this error: > > In file included from e-util.cc:32: > /sw/include/glib-2.0/glib/gi18n.h:23:21: error: libintl.h: No such > file or directory...
This has been a recurring problem. I don't pretend to understand all of the underlying reasons for it, but I'm happy to be the first to offer my ill-informed advice anyway ;o) You snipped the lines just prior to the error message which tell you where the compiler is looking for header files. To begin, I would do 'locate libintl.h' to find out where the 'missing' header file really is. Then, compare the real location of that header file with all of the -I flags in the output of the compiler -- e.g. below is the output of my linux compiler: if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT e-util.o -MD -MP -MF ".deps/e-util.Tpo" -c -o e-util.o e-util.cc; \ then mv -f ".deps/e-util.Tpo" ".deps/e-util.Po"; else rm -f ".deps/e-util.Tpo"; exit 1; fi if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT file-util.o -MD -MP -MF ".deps/file-util.Tpo" -c -o file-util.o file-util.cc; \ then mv -f ".deps/file-util.Tpo" ".deps/file-util.Po"; else rm -f ".deps/file-util.Tpo"; exit 1; fi (The result will probably be confusing because of line-wrap -- sorry.) The point is that my libintl.h is in /usr/include, which is one of the 'default' places that the compiler looks for header files. If your libintl.h is somewhere else (likely) then you should compare the real location against the list of -I directories and investigate from there. _______________________________________________ Pan-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/pan-users
