- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm having troubles compiling a very simple C++ program for uClinux in Nios IDE. It is a problem with multiple definitions of _start (by crt0, libc.a, etc). I saw other topics reporting that too, but I got no success solving that.
Can anyone post a step-by-step (or any help) to set up the environment for C++ uClinux project in nios IDE? Someone has a makefile (and rules.mak) to build similar projects? (and a makefile for linux OS). Thnks a lot in advance!Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by 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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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 $@ $<
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