Hi
Just an update
1) have changed my makefile to the one shown below
# # configurable options# - set DEBUG = 1 to turn on debugging support#
DEBUG = 1
PROJ_NAME = hello
INSTALL_DIR =
PROGS := $(PROJ_NAME).exe
CFLAGS +=
# # You should not need to modify anything beyond this point# # TOPDIR = ..
include Rules.mak
ifeq '$(DEBUG)' '1'
PROGS += $(PROGS:.exe=.gdb)
endif
all: $(PROGS)
.PHONY: clean
clean:
-rm -f *. *.elf *.gdb *.bin *.exe
.PHONY: install
install: all
ifeq "$(INSTALL_DIR)" ""
$(error No installation directory specified)
endif
mkdir -p $(INSTALL_DIR)/bin
install -v $(filter %.exe, $(PROGS)) $(INSTALL_DIR)/bin
2) I have compiled a custom uClibc library ( used the guide for this )
3) Have tried overwriting the lib folder with the new files created by my custom compilation.
c:\altera\kits\nios2\bin\eclipse\plugins\com.microtronix.nios2linux.uClibc_1.4.0\lib has been replaced by the files from
C:\altera\kits\nios2\examples\software\linux\ECTKernel\lib Still I get the console output
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
make -k all
no emulation specific options.
nios2-elf-gcc -nostdinc -D__linux__ -O0 -g -I"c:/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.uClibc_1.4.0"/include -I/cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1//include -fno-optimize-sibling-calls -mhw-mul -mhw-mulx -Wall -o hello.o hello.cpp
nios2-elf-gcc -msys-crt0="c:/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.uClibc_1.4.0"/lib/crt0.o -r -d -L"c:/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.uClibc_1.4.0"/lib -o hello.bin hello.o /cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/lib/libm.a /cygdrive/c/altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/libgcc.a "c:/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.uClibc_1.4.0"/lib/libc.a
hello.o(.text+0x0): In function `_start':
: multiple definition of `_start'
c:/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.uClibc_1.4.0/lib/crt0.o(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [hello.bin] Error 1
make: Target `all' not remade because of errors.
rm hello.o[/b]
--- Quote End ---
sugestions???
Regards
Michael E