Hi community, right now i am using eclipse + winarm and want to compile some c code for my AT91SAM9RL board (ARM based) for compiler arm-elf-gcc and linker got some problems when i use arm-elf-gcc, g++ i get undefined reference errors when i use arm-elf-ld it works but i get .exe as result i need .elf , .hex or .bin can someone help?
:
Moved by Moderator
Cloud Strife wrote: > Hi community, > > right now i am using eclipse + winarm > and want to compile some c code for my > AT91SAM9RL board (ARM based) > > for compiler > arm-elf-gcc You might want to update to a more up-to-date GNU tool-packate (WinARM ist rather old now). See yagarto.de or search for Codesourcery CS G++ lite for arm-eabi. > and linker got some problems > when i use > arm-elf-gcc, g++ > i get undefined reference errors Not enough information, at least show the error messages. > when i use > arm-elf-ld > it works but i get .exe as result Avoid calling -ld directly for linking.
Martin Thomas wrote: > Cloud Strife wrote: >> Hi community, >> >> right now i am using eclipse + winarm >> and want to compile some c code for my >> AT91SAM9RL board (ARM based) >> >> for compiler >> arm-elf-gcc > > You might want to update to a more up-to-date GNU tool-packate (WinARM > ist rather old now). See yagarto.de or search for Codesourcery CS G++ > lite for arm-eabi. > >> and linker got some problems >> when i use >> arm-elf-gcc, g++ >> i get undefined reference errors > > Not enough information, at least show the error messages. > error message: undefined reference to _read_r , ..._lseek_r ,...i_satty_r etc i am using yagarto gcc as compiler now >> when i use >> arm-elf-ld >> it works but i get .exe as result > > Avoid calling -ld directly for linking. idk what files the AT91SAM9RL can understand but i guess i need .elf or .bin
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.