Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21584 Discussions

Error occurred during building the project in NiosII

Altera_Forum
Honored Contributor II
1,176 Views

hi, 

In my project i'm going to build c program by using nios II . but the following error has occurred when i building the project . So if any one have a idea about this , plz rply to this thread. 

 

 

/cygdrive/d/Janaranga/main/main_syslib/Debug/libmain_syslib.a(alt_main.o)(.text+0x58): In function `alt_main': 

/cygdrive/c/altera/nios/nios2eds/components/altera_hal/HAL/src/alt_main.c:154: undefined reference to `main' 

collect2: ld returned 1 exit status 

make: *** [main.elf] Error 1
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
429 Views

You seem to be missing a main() function. Check that it is part of your project and that it compiles.

0 Kudos
Reply