Results 1 to 1 of 1

Thread: NIOS2 gcc c++ standard library

  1. #1
    Join Date
    Nov 2016
    Rep Power

    Default NIOS2 gcc c++ standard library

    Hi there,

    i am using Quartus 16.1 with gcc version 5.3. If i want to compile a simple project with c++ standard libraries, i'll get a linker error that the memory size is about 615000Bytes too small. That happens with also with all others STL containers. Has anyone else this problem or had anyone similar issues?
    I dont know what other information i can give you to explain why this happens, but no clue. I made a BSP, compiled it (no errors) and made a new NIOS Application and tried to use std::string -> error. If i make a C++ Application without strings everything is fine.

    Any help would be greatly appreciated, thanks. If maybe more info is needed say so

    main.cpp looks like this:

    #include <string>
    using namespace std;
    int main()
        string s = "Hello World!";
        return 0;
    Maybe I should ask differently: Has anybody experience with developing software for the NIOS II target in C++ and has used some of the STL containers / strings? And maybe knows if there were some special settings that had to be made?
    Attached Images Attached Images
    Last edited by Litschi; November 28th, 2016 at 11:18 AM.

Similar Threads

  1. New library using DSP Builder standard blockset
    By offox in forum DSP Builder and DSP IPs
    Replies: 2
    Last Post: June 13th, 2016, 09:10 AM
  2. Replies: 0
    Last Post: April 25th, 2014, 10:43 AM
  3. Replies: 2
    Last Post: February 22nd, 2012, 10:04 AM
  4. LCD Graphics Library for NIOS2 ?
    By lewy0701 in forum General Altera Discussion
    Replies: 2
    Last Post: June 21st, 2011, 05:53 AM
  5. Division and standard library support by NIOSII compiler
    By sunil in forum General Software Forum
    Replies: 2
    Last Post: May 14th, 2010, 09:41 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts