Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Tomas, the first path should be "." (without slash). Open Makefile, find APP_INCLUDE_DIRS += ./ and delete trailing slash. --- Quote End --- Thank You, seems like include problems are now gone. Almost... Now I get this error:
**** Build of configuration Nios II for project lwIP_NIOS_II_Example ****
make all
Info: Building ../lwIP_NIOS_II_Example_bsp
make --no-print-directory -C ../lwIP_NIOS_II_Example_bsp
Info: Compiling main.c to obj/main.o
nios2-elf-gcc -xc -MP -MMD -c -I../lwIP_NIOS_II_Example_bsp/drivers/inc -I../lwIP_NIOS_II_Example_bsp/HAL/inc -I../lwIP_NIOS_II_Example_bsp -I../lwIP_NIOS_II_Example_bsp/drivers/inc -I. -Isrc/include -Isrc/include/ipv4 -DSYSTEM_BUS_WIDTH=32 -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALTERA_TRIPLE_SPEED_MAC -DALT_SINGLE_THREADED -O0 -g -Wall -EL -mno-hw-div -mhw-mul -mno-hw-mulx -o obj/main.o main.c
main.c: In function 'lwipProcessTimers':
main.c:143: error: 'TCP_TMR_INTERVAL' undeclared (first use in this function)
main.c:143: error: (Each undeclared identifier is reported only once
main.c:143: error: for each function it appears in.)
main.c:143: warning: implicit declaration of function 'tcp_tmr'
make: *** Error 1
This define is in include/lwip/tcp_impl.h, however I don't want to add this include into main.c in case I am missing something else. BR, Tomas D.