Altera_Forum
Honored Contributor
21 years agoWhat's wrong with the nios-elf-ld ?
When I compile my program, some error happen.
[SOPC Builder]$ make nios-elf-ld -LC:/altera/quartus41/sopc_builder/bin/nios-gnupro/nios-elf/lib/m32 -LC:/altera/quartus41/sopc_builder/bin/nios-gnupro/lib/gcc-lib/nios-elf/2.9-nios -010801-20020710/m32 -L../lib -L./librtos32 -e _start -u _start -g -T C:/altera/ quartus41/sopc_builder/bin/excalibur.ld main.o Tasks.o --start-group -l rtos32 - l nios32 -l c -l m -l gcc --end-group -o main.out nios-elf-ld: cannot find -lc make: *** [main.out] Error 1 My makefile is writed like this: LIBS = --start-group -l rtos32 -l nios32 -l c -l m -l gcc --end-group GCC_OPTS = -g -m32 main.srec: main.out nios-elf-objcopy -O srec main.out main.srec main.out : $(OBJETS) nios-elf-ld $(LIBPATH) $(LD_OPTS) $(OBJETS) $(LIBS) -o main.out I don't know what's wrong and how to correct it. Who can help me?