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

Bug#245769: gcc-3.2: -I"" makes gcc/g++ behave badly.



Package: gcc-3.2
Version: 1:3.2.2-0pre2
Severity: normal

Adding -I"" to gcc/g++ makes it behave badly.
Example for gcc:
ingrid-h$ gcc -c apa.c
ingrid-h$ gcc -I"" -c apa.c
/usr/lib/gcc-lib/i386-linux/3.2.2/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-linux/3.2.2/../../../crt1.o(.text+0x18): undefined
reference to `main'
collect2: ld returned 1 exit status

Where apa.c is:
#include <time.h>
int a()
{
return 0;
}

-I"" to gcc/g++ makes it unable to find includefiles
ingrid-h$ g++ -I/lap/clhep/include -c apa.cc
ingrid-h$ g++ -I"" -I/lap/clhep/include -c apa.cc
apa.cc:1:38: CLHEP/Vector/ThreeVector.h: No such file or directory

where apa.cc is:
#include <CLHEP/Vector/ThreeVector.h>

int a()
{
return 0;
}


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux ingrid-h.hpc2n.umu.se 2.4.22-ingrid-p4-smp #1 SMP Fri Feb 13 09:40:18 CET 2004 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages gcc-3.2 depends on:
ii  binutils                   2.12.90.0.1-4 The GNU assembler, linker and bina
ii  cpp-3.2                    1:3.2.2-0pre2 The GNU C preprocessor.
ii  gcc-3.2-base               1:3.2.2-0pre2 The GNU Compiler Collection (base 
ii  libc6                      2.2.5-11.5    GNU C Library: Shared libraries an
ii  libgcc1                    1:3.2.2-0pre2 GCC support library.




Reply to: