Altera_Forum
Honored Contributor
12 years agoalt_irq_init
There is an annoying error message when I try to compile my project in NIOS IDE. I am using quartus 9.0 (sp2). I build a project with SOPC builder and when I try to compile the C code I see the follwoing error:
Linking myproject.elf... <project folder>/myprojct_syslib/Release/myproject_syslib.a(alt_main.o)(.text+0xc): In function `alt_main': <quartus 9.0 installed fodler>/nios2eds/components/altera_hal/HAL/src/alt_main.c:102: undefined reference to `alt_irq_init' collect2: ld returned 1 exit status make: *** [myproject.elf] Error 1 Build completed in 17.187 seconds There is a forum that user has similar issue but the solution is removing ".a" file and cleaning the project! For sure solution does not work! Sometimes I restarted my computer and error will be gone! sometimes I rebuild the hardware in sopc builder and the error will be gone. Has anyone seen this before? -Amir