Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Error occurred during building the project in NiosII

Altera_Forum
Honored Contributor II
1,205 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
458 Views

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

0 Kudos
Reply