This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About mips-elf-ld (newlib)


libra wrote:
> The error message is that:
> /tools/mips/H-i686-pc-cygwin/lib/gcc/mips-elf/3.5.0/../../../../mips-
> elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 
> 0000000000400040
Did you wrote your own crt0? Check if there is the entry point _start in
it. You can also change the entry point in your linkskript with
ENTRY(_MyEntryPoint)

> /cygdrive/c/DOCUME~1/libra/LOCALS~1/Temp/ccYfspyO.o(.text+0x3c): In function 
> `main':
> : undefined reference to `printf'
> collect2: ld returned 1 exit status
It is a bit hard to tell what cause this problem because you didn't
supplied the command line with which you compiled you program. You used
the -lc switch to use libc but maybe at the wrong position. Try using it
at last argument.

Bye
Alex


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