include fail with windows format in cygwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I found that gcc 10.2.0 does not consider the source directory as include
path, when we use windows format like "C:\\tests\\x.c". I run it correctly
with gcc 5.4.0. I also have correct result with format "C://tests//x.c" and
"/cygdrive/c/tests/x.c" in gcc 10.2.0.

experiment:
$ ls "C:\\tests"
test.h  x.c
$ gcc -E "C:\\tests\\x.c" -o /dev/null
C:\tests\x.c:1:10: fatal error: test.h: No such file or directory
    1 | #include "test.h"
      |          ^~~~~~~~
compilation terminated.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux