commike37
May 31st, 2007, 11:09 PM
Ok, so I'm trying to include some headers in my code, but there are some problems.
Everything I need is somewhere in /usr/include/. The problem is that it may be buried in a directory or two. One of the packages I downloaded has some source code with this statement:
#include <libxml/somefile.h>
The files it's trying to include are actually in libxml2/libxml/somefile.h. So why can't g++/gcc just search not just /usr/include, but /usr/include/libxml2? There are other files that have the same problem. Granted, I could just use the -I flag, but I don't want to use an -I flag each and every time a header is in /usr/include/somedirectory.
Is there a flag that will recursively search through each subdirectory in /usr/include and other search paths?
Everything I need is somewhere in /usr/include/. The problem is that it may be buried in a directory or two. One of the packages I downloaded has some source code with this statement:
#include <libxml/somefile.h>
The files it's trying to include are actually in libxml2/libxml/somefile.h. So why can't g++/gcc just search not just /usr/include, but /usr/include/libxml2? There are other files that have the same problem. Granted, I could just use the -I flag, but I don't want to use an -I flag each and every time a header is in /usr/include/somedirectory.
Is there a flag that will recursively search through each subdirectory in /usr/include and other search paths?