>I believe I have the "right" ld: >C:\WinAVR\examples\test>which ld.exe >C:\WinAVR\avr\bin\ld.exe ld is not on my path - I do a F:\avrprojects\testgarbage>which avr-ld.exe which gives me: C:\WinAVR\bin\avr-ld.exe Perhaps avr-ld.exe is the correct linker? Just as a side note, when you did the installation, did you select all defaults (expecially the install directory)? It seems that all your path info is messed up - I've seen it happen in other applications when you go the "custom install" route. Insufficient testing. Ken ----- Original Message ----- From: "Herbert Graf" To: Sent: Saturday, April 24, 2004 10:42 PM Subject: Re: [AVR]: Still having problems with WinAVR > > Herbert, > > > > Well, I don't know. I created a directory and copied in your > > makefile. Then I cut and pasted the code from the body > > of your message into a file named test1.c. Typed "make all" > > from both the pn and from a dos prompt - worked fine, no errors. > > > > About the only suggestion I have left is to make sure your > > path is correct and you are really using the correct "make" > > application (first in path??) as opposed to some other > > make (VC++, PIC, etc. - could account for the invalid > > assembler option). My path is as follows: > > > > PATH=C:\WinAVR\bin;C:\WinAVR\utils\bin; > > C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS > > \System32\Wbem;C:\COSMIC\CXHC08LT;c:\program files > > \devstudio\sharedide\bin\ide;c > > :\program files\devstudio\sharedide\bin;c:\program > > files\devstudio\vc\bin;C:\COS > > MIC\CXHC08LT;C:\PICC > > > > Good Luck. > > For make: > > C:\>which make.exe > C:\WinAVR\utils\bin\make.exe > > as was pointing to a different tool though, so I fixed that. > > Then it complained about object files missing (crtm162.o), I just copied > them over, don't have time to figure out that crap. > > Now I get the following: > > avr-gcc (GCC) 3.3.2 > Copyright (C) 2003 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > > Linking: test1.elf > avr-gcc -mmcu=atmega162 -I. -g -Os -funsigned-char -funsigned-bitfields -fpa > ck-struct -fshort-enums -Wall -Wstrict-proto > types -Wa,-adhlns=test1.o -Ic:\winavr\avr\include -std=gnu99 -Wp,-M,-MP,-MT, > test1.o,-MF,.dep/test1.elf.d test1.o --out > put test1.elf -Wl,-Map=test1.map,--cref -lm > ld: cannot find -lgcc > make: *** [test1.elf] Error 1 > > I find no reference to this -lgcc in the makefile so I have NO idea what's > passing it to ld. > > I believe I have the "right" ld: > > C:\WinAVR\examples\test>which ld.exe > C:\WinAVR\avr\bin\ld.exe > > > I must say that I will be sending both circuit cellar and Atmel a very terse > letter about how they shouldn't be recommending such crap software to a > newbie. > > Thanks again for your help. > > ---------------------------------- > Herbert's PIC Stuff: > http://repatch.dyndns.org:8383/pic_stuff/ > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body