Altera_Forum
Honored Contributor
14 years agocompiler error
I am trying to build and run the simple socket server template and I am getting the following error from the linker.
could someone please explain to me the following error: ======================================================== [BSP build complete] Info: Linking NiosSystem.elf nios2-elf-g++ -T'../NiosSystem_bsp//linker.x' -msys-crt0='../NiosSystem_bsp//obj/HAL/src/crt0.o' -msys-lib=ucosii_bsp -L../NiosSystem_bsp/ -Wl,-Map=NiosSystem.map -O0 -g -Wall -EL -mhw-div -mhw-mul -mno-hw-mulx -o NiosSystem.elf -lm ../NiosSystem_bsp/\libucosii_bsp.a(alt_main.o): In function `alt_main': c:/altera/Projects/GaitID/NiosIIfDesign/software/NiosSystem_bsp/HAL/src/alt_main.c:154: undefined reference to `main' ../NiosSystem_bsp/\libucosii_bsp.a(dm9000a.o): In function `prep_dm9000a': c:/altera/Projects/GaitID/NiosIIfDesign/software/NiosSystem_bsp/drivers/src/dm9000a.c:204: undefined reference to `get_mac_addr' ../NiosSystem_bsp/\libucosii_bsp.a(alt_iniche_dev.o): In function `iniche_devices_init': c:/altera/Projects/GaitID/NiosIIfDesign/software/NiosSystem_bsp/iniche/src/alt_iniche_dev.c:118: undefined reference to `get_ip_addr' collect2: ld returned 1 exit status make: *** [NiosSystem.elf] Error 1 ======================================================== what should I do? how can I fix that?