Date: Mon, 15 Dec 1997 19:24:58 +0200 (IST) From: Eli Zaretskii To: Hans-Bernhard Broeker cc: djgpp workers list Subject: Re: Trouble with C++ and interrupt (fwd) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.