Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Error occurred during building the project in NiosII

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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