Function Def Not Found, Possible Header File Path Prob [message #1862336] |
Mon, 27 November 2023 02:31 |
A. M. Messages: 1 Registered: November 2023 |
Junior Member |
|
|
Hello,
I am using Eclipse for Nios II. Settings use the GNU Elf Parser, GNU Assembler Error Parser, GNU gmake Error Parser 7.0, pushd/popd CWD Locator, GNU gcc/g++ Error Parser, and the MinGW Nios II GCC4 toolchain. I am using it to build FreeRTOS for Nios II and it keeps getting stuck on the port.c file as "undefined reference to alt_ic_irq_enable" and "alt_ic_irq_disable". The defines for this are in sys/alt_irq.h and priv/alt_legacy_irq.h ultimately which have been generated from the Nios II Eclipse Template and have been included in the port.c file (although they are in seperate directories from port.c). I have included the HAL directory (the parent dir where these files are from) in the Nios II Application Includes path settings. I've also tried setting it as a path variable with no success. Interestingly, I've pulled all these files into a seperate folder and used gcc -E and I've no objections from the compiler, although not finding the header isn't necessarily the only thing that could cause the difference, it seems logical as the functions are defined in those .h files. In any event, my current conclusion is that, for whatever reason, the compiler can't find the path to the correct header, but I am at a loss for what setting to use or how to trace down for sure where the error is occurring in the toolchain at this point. Suggestions? Many thanks in advance!
|
|
|
Powered by
FUDForum. Page generated in 0.03643 seconds