This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Include problem
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Include problem
- From: Toby Kelsey <toby dot kelsey at muscat dot com>
- Date: Mon, 26 Jun 2000 11:09:08 +0100
- Organization: Smartlogik, a division of Bright Station plc
- Reply-To: toby dot kelsey at muscat dot com
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