This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/4530: Can't use #include <map> with map directory in include path



>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==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]