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]

Re: argument bug in 2.96



> When specifying a file with an UPPERCASE extension, gcc doesn't know
> how to handle it's type.  It is assumed to be an object file?
> 
> make 
> g++ -O0 -g -c utils.cpp -o UTILS.o
> g++ -O0 -g -c PPORT.CPP -o PPORT.o
> g++: PPORT.CPP: linker input file unused since linking not done
> 
> 
> -x c++ must be specified.  Should this be fixed?

No, this is intentional.  GCC is a case-sensitive compiler, and there
is a big difference between, say, a *.c file (C language) and a *.C
file (C++ language).  You must specify the extension in the proper
case.


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