X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Wed, 10 Apr 2002 09:16:10 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: deckerben cc: djgpp AT delorie DOT com Subject: Re: making dxe2gen with clio.rice.edu binaries -or- "undefined reference to 'operator'"? In-Reply-To: <3cb37fd8$0$4034$9b622d9e@news.freenet.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 10 Apr 2002, deckerben wrote: > D:\Project\dxe2\src>gcc -O2 -c -g -Wall *.c -I../include > D:\Project\dxe2\src>gcc -O2 -g -Wall dxe2api.o dxe2stat.o -I../include > dxe2gen.cpp -o dxe2gen.exe > > Can you do it without having to manually include '-lstdcxxx'?? If not, then > what is meant by: > "gcc knows it should link in the standard C++ library, because it knows its > C++ from the file extension" I think there's a confusion between compilation and linking. `gcc' knows friom the file-name extension it's a C++ program, so it compiles it as such; but it does _not_ instruct the linker to scan the C++ libraries. `gpp' does the latter.