--- Quote Start ---
originally posted by francosinhori+sep 21 2006, 07:13 pm--><div class='quotetop'>quote (francosinhori @ sep 21 2006, 07:13 pm)</div>
--- quote start ---
<!--quotebegin-slsnios@Sep 19 2006, 10:10 AM
hi francisinhori
actualy,it don't support c++.but you can test simple c++ prog.
here you have to change the rule.mk (cc := $(cross)g++)
and you have to add some line in simple make file given for helo example.
sure, it will run.
-slsnios
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18346)
--- quote end ---
--- Quote End ---
I've already tried this (CC:= $(CROSS)g++), but it didn't work. Has someone tried to compile with nios2-uClinux-g++ in linux OS? I got the binary nios 2 toolchain from nios wiki, but it says that c++ compiler is not installed, and the CrossGcc tutorial is only for newlib (instead of uclinux lib).
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18387)</div>
[/b]
--- Quote End ---
hi
u have to change Rules.mak
1->
CC := $(CROSS)g++
2->
%.o : %.cpp Makefile
$(CC) $(CFLAGS) $(WARNING_FLAGS) -c -o $@ $<
write above two line in place of folowing lines:
%.o : %.c Makefile
$(CC) $(CFLAGS) $(WARNING_FLAGS) -c -o $@ $<
%.o : %.cpp Makefile
$(CC) $(CFLAGS) $(WARNING_FLAGS) -o $@ $<