This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: argument bug in 2.96
- To: nick at coelacanth dot com
- Subject: Re: argument bug in 2.96
- From: DJ Delorie <dj at redhat dot com>
- Date: Tue, 6 Nov 2001 17:14:16 -0500
- CC: gcc-bugs at gcc dot gnu dot org
- References: <m3elnbps23.fsf@localhost.localdomain>
> 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.