This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

undefined reference to `__gccmain'



hello...
I am trying to cross compile some boot code to a mips environment, using the
cygnus environment. 
when I load I get:
opened script file rom.ld
attempt to open begin.o succeeded
begin.o
attempt to open init_a.o succeeded
init_a.o
attempt to open cach4000.o succeeded
cach4000.o
attempt to open main.o succeeded
main.o
attempt to open serial.o succeeded
serial.o
attempt to open end.o succeeded
end.o
main.o: In function `main':
/cygdrive/d/sldr23/src/main.c:4: undefined reference to `__gccmain'

I remember reading some where in the documentation, something about having
to set some switch when you dont include the crt0.o code... can you help or
point me in the right direction?
thanks 
Larry.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]