X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker 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: References: 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 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.