View previous topic :: View next topic |
Author |
Message |
mateus
Joined: 06 Aug 2010 Posts: 4
|
Posted: Fri Aug 06, 2010 11:49 pm Post subject: Compilation error: undefined symbol |
|
|
I tryed to include some new stuffs in my hello world example and got the following errors:
Undefined symbol putchar
Undefined symbol __udivmodhi4
Undefined symbol rand
Undefined symbol __divmodhi4
Undefined symbol srand
That error comes after avr-objdump (avr-gcc and avr-ld show no error).
I used a static library.
Looks like missing something.
I already compiled that stuff in another "avr environment" (the micaz sensor). Porting it to turbo programmer will not be easy.
Any suggestions?
Best Regards!
Mateus |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
mateus
Joined: 06 Aug 2010 Posts: 4
|
Posted: Wed Aug 11, 2010 11:17 pm Post subject: Re: Compilation error: undefined symbol |
|
|
The problem can be fixed if I do not use the -l flag, i.e., avoiding the static library. Either I pass the object directly or include the c file.
Regards
Mateus |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|