User forums > Help

undefined reference to '__mulhi3' In function 'vfprintf': and 'calloc'

<< < (4/9) > >>

oBFusCATed:
BTW: Have you tried to right click in these logs? There is the handy option to copy the contents as text. :)

Also when posting the full build log, use the rebuild command :)

Ralphxyz:
It's still showing the same errors we started with!
There is a problem with the linked compiler libraries (not knowing wha tI am talking about of course).

-------------- Clean: Debug in StepperJoy (compiler: GNU AVR GCC Compiler)---------------

Cleaned "StepperJoy - Debug"

-------------- Build: Debug in StepperJoy (compiler: GNU AVR GCC Compiler)---------------

avr-gcc.exe -Wall -mmcu=atmega328p -DF_CPU=14745600  -g    -IC:\WinAVR-20090313\avr\include -IC:\NERDKITS\Code\libnerdkits -IC:\WinAVR-20100110\avr\include  -c fuse.c -o obj\Debug\fuse.o
avr-gcc.exe -Wall -mmcu=atmega328p -DF_CPU=14745600  -g    -IC:\WinAVR-20090313\avr\include -IC:\NERDKITS\Code\libnerdkits -IC:\WinAVR-20100110\avr\include  -c main.c -o obj\Debug\main.o
main.c: In function 'main':
main.c:133: warning: unused variable 'i'
avr-g++.exe -LC:\WinAVR-20090313\avr\lib  -o bin\Debug\StepperJoy.elf obj\Debug\fuse.o obj\Debug\main.o   -mmcu=atmega328p -Wl,-Map=bin\Debug\StepperJoy.map,--cref  C:\NERDKITS\Code\libnerdkits-328p\delay.c C:\NERDKITS\Code\libnerdkits-328p\delay.h C:\NERDKITS\Code\libnerdkits-328p\delay.o C:\NERDKITS\Code\libnerdkits-328p\io_328p.h C:\NERDKITS\Code\libnerdkits-328p\lcd.c C:\NERDKITS\Code\libnerdkits-328p\lcd.h C:\NERDKITS\Code\libnerdkits-328p\lcd.o C:\NERDKITS\Code\libnerdkits-328p\uart.c C:\NERDKITS\Code\libnerdkits-328p\uart.h C:\NERDKITS\Code\libnerdkits-328p\uart.o
C:\WinAVR-20090313\avr\lib\libc.a(vfprintf_std.o): In function `vfprintf':
(.text+0xd4): undefined reference to `__mulhi3'
C:\WinAVR-20090313\avr\lib\libc.a(vfprintf_std.o): In function `vfprintf':
(.text+0xe4): undefined reference to `__mulhi3'
C:\WinAVR-20090313\avr\lib\libc.a(calloc.o): In function `calloc':
(.text+0x14): undefined reference to `__mulhi3'
Process terminated with status 1 (0 minutes, 0 seconds)
3 errors, 1 warnings (0 minutes, 0 seconds)
 

oBFusCATed:
Now, if you compare this log to the one from the command line, which works. what are the differences?

Ralphxyz:

--- Quote ---Now, if you compare this log to the one from the command line, which works. what are the differences?
--- End quote ---

Sorry I do not know how to get a log from the command line.

I just run "make" , that compiles my .c code following a Makefile.

There might be a option I could put in the Makefile??

Ralph

oBFusCATed:
It depends on the makefile, look at it and edit it. Some makefiles support VERBOSE=1.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version