This is the mail archive of the gcc-bugs@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]

Include problem


Bug:
  Cannot include a file which has the same name as the include directory

Version:
  2.95.2 19991024 (release)

Example:

$ mkdir Foo
$ touch Foo/Foo
$ echo '#include "Foo"' > Bar.cxx
$ /usr/local/bin/g++ -o Bar Bar.cxx -LFoo
Bar.cxx:1: directory `Foo' specified in #include
$ /usr/local/bin/g++ -LFoo -o Bar -LFoo Bar.cxx -LFoo
Bar.cxx:1: directory `Foo' specified in #include
$ /usr/local/bin/g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)

-- 
Toby Kelsey      Software Engineer
Smartlogik, Bright Station plc         Phone    +44 (0)1223 715012
The Westbrook Centre, Milton Road      Fax      +44 (0)1223 715001
Cambridge CB4 1YG, UK                  Web   www.brightstation.com

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