This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ include path conflict when using STL ?
- From: Renaud Guerin <Renaud dot Guerin at sophia dot inria dot fr>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 6 Aug 2002 12:39:22 +0200
- Subject: g++ include path conflict when using STL ?
- Organization: INRIA Sophia Antipolis
Hi,
I'm currently trying to integrate some code that uses the STL <queue>
directive into a bigger project.
The code does an #include <queue>, but unfortunately the project also has a
"queue/" subdirectory in the include path, and g++ fails to interpret the
queue as the STL one and fails , telling that I'm trying to include a
directory.
The only workaround I found is to rename the subdir to something else, but
this is obviously not really acceptable.
Does anyone know how to tell gcc to look inside the STL include directory
first, and only then to use the -I specified include path ?
Thanks in advance
(please cc any answer)