Mail Archives: djgpp/2000/06/04/20:31:18
On Sun, 4 Jun 2000, RyanR wrote:
> Im just recently got djgpp, and I compiled a program just fine, but when i
> tried to make it I got some errors in the Rhide message window:
>
> Error: c:/djgpp/lib/crt0.o(.data+0xc2):crt0.s: undefined reference to 'main'
> Error: c:/djgpp/lib/libc.a(crt1.o)(.text+0x44e):crt1.c: undefined referense
> to 'main'
> Error: collect2: ld returned 1 exit status
> There were some errors
>
Could you please make sure that the source you are trying to compile has a
main function...
int main()
{
}
something like that...if there is no main function then you can get the
link time errors...
> Now of the files mentioned i can only find crt0.o and libc.a in the lib dir,
> am i missing somthing? The code is fine i believe, its copyed out of a book
> and should work. Also I have been able to make other programs, simpler ones
> (eg hello world) but not this one.
I think the reason is that there is no main function in the source...
Grendel
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)
- Raw text -