Mail Archives: djgpp-workers/1997/12/15/12:25:18
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 -