This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/4530: Can't use #include <map> with map directory in include path
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/4530: Can't use #include <map> with map directory in include path
- From: forsberg at tns dot net
- Date: 11 Oct 2001 03:42:09 -0000
- Reply-To: forsberg at tns dot net
>Number: 4530
>Category: c++
>Synopsis: Can't use #include <map> with map directory in include path
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 10 20:46:04 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Bruce Forsberg
>Release: gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
Linux on Intel SUSE 6.4 with kernel 2.2.18. This also occured
with g++ 2.95.3 on Solaris 2.5.1 on SPARC.
>Description:
Can't compile a C++ file using STL map #include directive
#include <map>
When a directory named map exists in the include path somewhere.
We get the following compile error:
main.cc:2: directory `../map' specified in #include
>How-To-Repeat:
Create a directory map in the parent directory that code is
in (ie mkdir ../map).
Compile this file with:
g++ -I.. -I. -g -c main.cc
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="main.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.cc"
CiNpbmNsdWRlIDxtYXA+CnVzaW5nIHN0ZDo6bWFwOyAKCmludAptYWluKGludCBhcmdjLCBjaGFy
ICogYXJndltdKQp7CiAgIG1hcDxpbnQsIGNoYXIgKiwgbGVzczxpbnQ+ID4gX2FycmF5OwoKICAg
X2FycmF5WzBdID0gIlN0cmluZyAxIjsKICAgX2FycmF5WzFdID0gIlN0cmluZyAxIjsKCiAgIHJl
dHVybiAoMCk7Cn0KCg==