Forum Discussion
Altera_Forum
Honored Contributor
21 years agoA bug in libm.a?
All, Today, when I build my application without any debugging information, everything is OK. But when I am going to link the .gdb file for debugging, the problem shows up. I got an "undefined e...
Altera_Forum
Honored Contributor
21 years agoHi, Randy,
The following is the error information I got. Thanks. <div class='quotetop'>QUOTE </div> --- Quote Start --- nios2-elf-ld -T C:/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.application_0.1.0/scripts/elf2flt.ld -o kvm_g.gdb kvm_g.bin kvm_g.bin(.text+0x3b298): In function `fmod': /build/nios2/bin/nios2-gnutools/src/newlib/newlib/libm/math/w_fmod.c:97: undefined reference to `__errno' kvm_g.bin(.text+0x3b2c8):/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libm/math/w_fmod.c:100: undefined reference to `__errno' make[1]: *** [kvm_g.gdb] Error 1[/b] --- Quote End ---