Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12453 Discussions

help !! undefined reference to `main' error

Altera_Forum
Honored Contributor II
1,049 Views

Info: Linking tse1_sw.elf 

nios2-elf-g++ -T'../tse1_sw_bsp//linker.x' -msys-crt0='../tse1_sw_bsp//obj/HAL/src/crt0.o' -msys-lib=hal_bsp -L../tse1_sw_bsp/ -L./ -Wl,-Map=tse1_sw.map -O0 -g -Wall -EL -mno-hw-div -mhw-mul -mno-hw-mulx -o tse1_sw.elf -lm  

../tse1_sw_bsp/\libhal_bsp.a(alt_main.o): In function `alt_main': 

C:\altera\12.0sp2\kits\cycloneVGX_5cgxfc7df31es_fpga\examples\board_update_portal\software\tse1_sw_b.../HAL/src/alt_main.c:154: undefined reference to `main' 

collect2: ld returned 1 exit status 

make: *** [tse1_sw.elf] Error 1
0 Kudos
0 Replies
Reply