Forum Discussion
Altera_Forum
Honored Contributor
14 years agoQuestion about #include in NIOS II?
I have built the following file: #include <stdio.h># include "system.h"# include "altera_avalon_pio_regs.h"# include "altera_up_avalon_rs232.h"
int main()
{
printf("Hello from Nios II!\n");...
Altera_Forum
Honored Contributor
14 years agoThe name of the directory containing the include file needs to be passed to the compiler as a -I <dir_name> parameter.
The IDE probably has a list of such names somewhere, the directory you need won't be in the default list.