Include problem

Toby Kelsey toby.kelsey@muscat.com
Mon Jun 26 03:08:00 GMT 2000


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


More information about the Gcc-bugs mailing list