preprocessor/3413: include_next does not work with -I/usr/include
wolf359_@gmx.net
wolf359_@gmx.net
Mon Jun 25 12:36:00 GMT 2001
>Number: 3413
>Category: preprocessor
>Synopsis: include_next does not work with -I/usr/include
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Mon Jun 25 12:36:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Thomas Weidner
>Release: 3.0.1 (20010625)
>Organization:
>Environment:
i686 Linux2.4.5 glibc2.2.2
>Description:
cpp reports the following error when processing a source file and using -I/usr/include (see How-To-Repeat):
In file include from /usr/local/include/g++-v3/cstring:31,
from 1.cpp:1:
/usr/local/include/g++-v3/bits/std_cstring.h:40:25: string.h: file not found
KDE doesn't compile because of this !
>How-To-Repeat:
echo "#include <cstring>" >1.cpp
cpp 1.cpp -I/usr/include >/dev/null
>Fix:
don't know,perhaps let include_next ALWAYS search /usr/include as last directory,even if it was given with -I
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list