delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/10/05:16:46

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: making dxe2gen with clio.rice.edu binaries -or- "undefined reference to 'operator'"?
Date: 10 Apr 2002 09:07:41 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 20
Message-ID: <a90vct$t5q$1@nets3.rz.RWTH-Aachen.DE>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020410091429 DOT 20549G AT is>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1018429661 29882 137.226.32.75 (10 Apr 2002 09:07:41 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 10 Apr 2002 09:07:41 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:

> 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.

Hmm... yes, looks like it (tested with GCC-2.95.2 on Linux).  I'm
surprised.  I was pretty certain that if you did linking and
compilation in one go, gcc recognized that the source file(s) are in
C++, so the C++ runtime should be linked in automatically.  I.e. I thought

	gcc -o hello hello.cpp

worked.  Turns out it doesn't ;-(

Time for a memory reboot, it seems.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019