FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-22-2004, 05:15 AM
Nigel
Guest
 
Posts: n/a
Default Using C++ on NIOS

We have just started writing a small application on the NIOS IDE II
(version 1.0.0, build 316). I want to develop it in C++, but it won't
recognise C++ syntax, (class, new etc), so clearly I need to do
something to enable C++, but I can't find anything. I have found
similar problems on the forums/groups, but none with any answers. The
closest one was to use "extern "C"{...} around the #includes, but this
made no difference.
Any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 09-23-2004, 01:51 AM
Nigel
Guest
 
Posts: n/a
Default Re: Using C++ on NIOS

[email protected] (Nigel) wrote in message news:<[email protected] com>...
> We have just started writing a small application on the NIOS IDE II
> (version 1.0.0, build 316). I want to develop it in C++, but it won't
> recognise C++ syntax, (class, new etc), so clearly I need to do
> something to enable C++, but I can't find anything. I have found
> similar problems on the forums/groups, but none with any answers. The
> closest one was to use "extern "C"{...} around the #includes, but this
> made no difference.
> Any help would be appreciated.


Now solved... it was simply that the 'main' file was created as a ".c"
file, not a ".cpp" (all template projects are for the NIOS).
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nios II really available ? geoffrey brown FPGA 5 06-11-2004 09:11 AM
NIOS and OCI Jerry FPGA 5 09-30-2003 03:54 AM


All times are GMT +1. The time now is 03:12 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved