Altera_Forum
Honored Contributor
19 years agoalt_busy_sleep
Dear All,
My code need to call alt_busy_sleep(), but the compiler report the following error. Linking TestCPP.elf... obj/main.o(.gnu.linkonce.t._ZN13JaidTestClass18TestOSDBlockAdjustEv+0x18c): In function `JaidTestClass::TestOSDBlockAdjust()': C:/altera/OSD_FINAL/JaidNiosOSD/software/TestCPP/TestClass/TestClass.hpp:352: undefined reference to `alt_busy_sleep(unsigned int)' I have include the necessary header file in my code, # include "priv/alt_busy_sleep.h" also I can find alt_busy_sleep.c in C:\altera\kits\nios2_51\components\altera_nios2\HAL\src. Why the linker can't find alt_busy_sleep yet. Evenly I copy alt_busy_sleep.c to project folder, but the error still exist... Anybody help... Thanks in advance http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif