www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/12/15/12:25:18

Date: Mon, 15 Dec 1997 19:24:58 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
cc: djgpp workers list <djgpp-workers AT delorie DOT com>
Subject: Re: Trouble with C++ and interrupt (fwd)
In-Reply-To: <Pine.LNX.3.93.971215164807.9550C-100000@acp3bf>
Message-ID: <Pine.SUN.3.91.971215192139.23950B@is>
MIME-Version: 1.0

On Mon, 15 Dec 1997, Hans-Bernhard Broeker wrote:

> 	Subject: gcc can't do multiple source files
> 
> 	What the bloody hell is this? As told by my C++ course book,
>         I just split up my program in two source files, and suddenly
>         it starts complaining about 'undefined reference to cout::...'

No, it should be "As soon as I used gcc to link .o files...".  Only if 
they say "gcc -o foo f1.o f2.o ...", they'd have a problem.  Saying
"gcc -o foo f1.cc f2.cc ..." is OK.

Now, how many newbies use gcc just to link?

> I don't think we want this any more than we want the current situation. 

I submit that we should at least try.  I'd bet that if you search the 
mail archives for these complaints, you will *never* see an example where 
they only link.

- Raw text -


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