>>I am using Mandrake Linux 9.0 with gcc 3 series (I think.)
>>Twice when compiling from source I got the error:
>>undefined reference to 'main'
> When compiling what from source? It sounds like you have an incomplete
> program.
>>I can't see tht reference in the Makefile.
> There wouldn't be. The error will actually be arising at the link
> stage. Each program needs a function called "main" which is where the
> program execution starts. It sounds like your program doesn't have
> one.
>>This has been discussed extensively from a programming point of view, but
>>is there anything that an end user can do about it, such as a switch?
> Generally speaking, end users don't compile programs (unless you mean
> end users of the compiler). It's intrinsically a programming problem.
>>If it
>>has happened twice in a row, it suggests that my system is somehow at
>>fault.
> It suggests that the source code you're compiling is at fault.
> Tell us what you're trying to compile and how and we may be able to help.
> John
Thanks John. I had this recently with Festival, a text-to-speech program I
compiled successfully under Mandrake 8.2, but which refused to compile
under 9.0. I posted about it, but now I can't find the reference. That is
what I meant by "twice in a row." Perhaps I was just unlucky. My latest
failure is with celestia v. 2.5, an OpenGL astronomy program
(http://www.shatters.net/celestia/)
Doug.
Doug.