public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56686] New: gcc cannot find include header file
@ 2013-03-22  2:18 panruochen at gmail dot com
  2013-03-22  2:19 ` [Bug c/56686] " panruochen at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: panruochen at gmail dot com @ 2013-03-22  2:18 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56686

             Bug #: 56686
           Summary: gcc cannot find include header file
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: panruochen@gmail.com


GCC fails in the following case:
a. Current directory is TopDir
b. gcc tries to compile some source file in sub directory SubDir
c. the source file includes a header file in TopDir
d. -I./ flag is set

gcc still reports: fatal error: xxx.h: No such file or directory

My gcc version information is as followed:
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.6.2/configure
--enable-languages=c,c++,ada,fortran,objc,obj-c++
--disable-sjlj-exceptions --with-dwarf2 --enable-shared
--enable-libgomp --disable-win32-registry --enable-libstdcxx-debug
--enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.6.2 (GCC)

The error cannot be seen in any older version. The sample source and makefile
is attached.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-12-07 11:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-22  2:18 [Bug c/56686] New: gcc cannot find include header file panruochen at gmail dot com
2013-03-22  2:19 ` [Bug c/56686] " panruochen at gmail dot com
2013-03-22  2:26 ` [Bug preprocessor/56686] " pinskia at gcc dot gnu.org
2013-03-22  6:54 ` ktietz at gcc dot gnu.org
2013-03-25  3:21 ` panruochen at gmail dot com
2013-03-25  3:28 ` panruochen at gmail dot com
2013-03-25  3:29 ` panruochen at gmail dot com
2013-04-25 14:09 ` lostdj at gmail dot com
2013-12-07 11:46 ` ktietz at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).