delorie.com/archives/browse.cgi | search |
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 <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | deckerben <deckerben AT freenet DOT de> |
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: | <Pine.SUN.3.91.1020410091429.20549G@is> |
MIME-Version: | 1.0 |
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 |
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.
webmaster | delorie software privacy |
Copyright � 2019 by DJ Delorie | Updated Jul 2019 |