Thread View: news.software.nntp
1 messages
1 total messages
Started by Klaus.Schilling
Tue, 09 Dec 1997 00:00
Re: compiling problem.
Author: Klaus.Schilling
Date: Tue, 09 Dec 1997 00:00
Date: Tue, 09 Dec 1997 00:00
86 lines
4132 bytes
4132 bytes
> > Re: compiling problem. > > From: karuottu@freenet.hut.fi (Kai Ruottu) > Reply to: Kai Ruottu > Date: Mon, 08 Dec 1997 23:27:06 GMT > Organization: Freenet Finland > Newsgroups: > comp.unix.admin, > gnu.gcc.help, > news.software.nntp > Followup to: newsgroup(s) > References: > <34861B45.4ACB8384@inow.com> > <666t2q$jj0$1@bofh.noc.best.net> > >On 4 Dec 1997 10:34:02 -0800, Ron Echeverri ><rone+usenet@bofh.noc.best.net> wrote: > >>In article <34861B45.4ACB8384@inow.com>, >>Jesse Rivera <jrivera@riscorian.com> wrote: >>>I'm not sure if this is a unix, news, or gcc problem but hopefully >>>someone has seen this: >> >>>Building subst... >>>cc -o subst subst.c >>>collect2: cannot find `ld' >>>collect2: ld returned 1 exit status >>>*** Error code 1 >>>make: Fatal error: Command failed for target `c' >> >>>I can't seem to get past this. What is 'ld' and 'collect2'? Any >>>assistance would be greatly appreciated. >> >>This is clearly not a unix, news, or gcc problem, but a compiler >>problem. Meaning, the guy who's compiling the software needs to find >>someone who actually knows what he's doing. > > I think this is a educational problem. I have met a lot of students >who have passed their C course without knowing afterwards why they put >the '#inlude' rows into a program and what the hell happens during the >compile process... > > Looking e.g. the Borland C/C++ bin-directory we'll find 'cpp.exe', >'brcc.exe' and 'tlink.exe' which seem to be the compiler passes. But >the compiler passes aren't handled during a C course -- It doesn't >seem to matter at all how the compiler works, just only how to use >its IDE controls... > > When learning to drive a car, it normally doesn't matter how the car >works, but when it doesn't work any more, one must be able to check if >there aren't any gasoline or the accumulator is empty... So, one must >know a little how a car works. A compiler user must know a little how >a compiler works in order to solve the possible simple problems... > > Perhaps this is a 'when everybody already knows this, why put it >here' - like syndrom the gcc manual writers have... It's possible that >an author writing about Borland or MS compilers doesn't know the >compile process him/herself, so don't expect to find a compile process >chart from those "Teach Yourself C in 1 hour" - like books...but I >expect a gcc manual writer to know this and also to tell it to the >readers... > > When we look at the GCC based compilers from some commercial >providers, e.g. from Motorola, we'll surely find a figure about the >compile & develope process in the first pages of the User's Manual. >(Look e.g. at the DSP563CCC User's Manual). These writers know how >stupid and ignorant the reader can be... > > But when we look at the "Using and Porting GNU CC" from RMS, or "The >Linux Programmer's Guide", there aren't any chart or figure about the >compile process. I don't remember DJGPP docs have anything about this, >neither emx nor cygwin32 docs... > > So, where all these poor askers will find info about why and where >'cpp', 'cc1', 'as', 'ld' etc will be needed? The only way seems to be >to ask someone who knows, but I'm really tired to see these simple >questions in all the news groups... cpp,as,ld do come with good info files for each, as do gcc and libc, that's already enough help from RMS' side. Klaus Schilling
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads