Altera_Forum
Honored Contributor
21 years agoCompile errors on RTOS demo
I have this problem reported as a service call at Accelerated Technology/
Mentor Graphics (people who make Nucleus Plus RTOS), but thought I'd check here and see if others may be having the same problem. ATI/MG is looking at it right now. Target is 1C20 (Altera demo board). I get the following errors from the linker:C:\MGC\embedded\Nucleus\Plus\Demo>nios2-elf-ld -g o\demo.o -o o\Plus_Demo.out -N -Map o\Plus_demo.map -( ..\..\lib\Plus.lib -T..\..\plus\demo\link_ram.ld -)
..\..\lib\Plus.lib(sdc.o): In function `SDC_Set_Baud_Rate':
sdc.o(.text+0x9f8): undefined reference to `__udivsi3'
..\..\lib\Plus.lib(quc.o): In function `QUC_Create_Queue':
quc.o(.text+0x108): undefined reference to `__udivsi3' Those two errors are generated from a if (a < (b/c)) type conditional. Everything in the library is compiled with the no-hw-div flag. Any clues? John