avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] (no subject)


From: Larry Barello
Subject: Re: [avr-gcc-list] (no subject)
Date: Fri Jan 26 17:40:04 2001

You didn't tell the compiler to just generate an object
module, so it tried to link it with the C runtime (gcrt1.s)
so you could load and execute the module.  Since your module
probably didn't have main(void) {} in it, the linker barfed.

gcrt1.o comes from c:\avrgcc\avr\lib

Try adding the -c option to your command line.

Try avr-gcc --help | more to see all the options available
(!).

Cheers!

----- Original Message -----
From: "Jim Pearce" <address@hidden>
> I can do error free builds of the first 8 test cases but
the ninth includes some assembler
> files and it barfs.  Here is the screen:
>
> ----------------------------------------------------------
---- Begin
> DOS -------------------------------------
> C:\avrgcc\test\gcctest9>make
> avr-gcc -x
assembler-with-cpp    -gstabs -mmcu=at90s8515 -I.
sqrtMike.s -o sqrtMike.o
>
/cygdrive/c/AVRGCC/BIN/../lib/gcc-lib/avr/2.97/../../../../a
vr/lib/crts8515.o: In function
> `__c_startup__':
> C:/AVRGCC/avr/lib/src/gcrt1.S:287: undefined reference to
`main'
> C:\AVRGCC\BIN\MAKE.EXE: *** [sqrtMike.o] Error 1
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]