- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everybody, I am a newbie in nios ii and I had this problem when compile a simple code on Nios ii
make -s all includes Linking light.elf... /cygdrive/d/DE2Prepare/OlderVerAgain/software/light_syslib/Debug/liblight_syslib.a(alt_main.o)(.text+0x34): In function `alt_main': /cygdrive/c/altera/90/nios2eds/components/altera_hal/HAL/src/alt_main.c:163: undefined reference to `main' collect2: ld returned 1 exit status make: *** [light.elf] Error 1 Build completed in 10.5 seconds I tried and tried again but I have the same message above. Please help me, thanks so much.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
did you define a main() function in your project, and is that function in a .c file that is actually compiled?

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page