Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

About C++ compiler problem

hi hippo

I can't use "nios-linux-uclibc-cpp" command to compile my app program for C++.

and i can find "nios-liuux-uclibc-cpp" compiler in /home/opt/nios2/bin dir.

why ?

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

[faye@localhost wsola]$ nios2-linux-uclibc-cpp main.cpp -o main -elf2flt

nios2-linux-uclibc-cpp: main.cpp: C++ compiler not installed on this system[/b]

--- Quote End ---

THX !

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by jay_1025@Jun 7 2006, 12:33 AM

    hi hippo

    i can&#39;t use "nios-linux-uclibc-cpp" command to compile my app program for c++.

    and i can find "nios-liuux-uclibc-cpp" compiler in /home/opt/nios2/bin dir.

    why ?

    <div class='quotetop'>quote

    --- quote end ---

    --- quote start ---

    [faye@localhost wsola]$ nios2-linux-uclibc-cpp main.cpp -o main -elf2flt

    nios2-linux-uclibc-cpp: main.cpp: c++ compiler not installed on this system

    --- Quote End ---

    THX !

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15970)</div>

    [/b]

    --- Quote End ---

    cpp is c preprocess.

    The compiler is g++.

    But the c++ library stdc++ still has problem.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi hippo

    So, i can&#39;t use C++ compiler under uClinux-dist-test.

    Can i use C++ compiler under linux-2.6.16.1(buildroot)?

    Thx !
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by jay_1025@Jun 7 2006, 12:50 PM

    hi hippo

    so, i can&#39;t use c++ compiler under uclinux-dist-test.

    can i use c++ compiler under linux-2.6.16.1(buildroot)?

    thx !

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15980)

    --- quote end ---

    --- Quote End ---

    No. They are the same compiler.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo+jun 7 2006, 12:06 am--><div class='quotetop'>quote (hippo @ jun 7 2006, 12:06 am)</div>

    --- quote start ---

    <!--quotebegin-jay_1025@Jun 7 2006, 12:50 PM

    hi hippo

    so, i can&#39;t use c++ compiler under uclinux-dist-test.

    can i use c++ compiler under linux-2.6.16.1(buildroot)?

    thx !

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15980)

    --- quote end ---

    --- Quote End ---

    No. They are the same compiler.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15981)</div>

    [/b]

    --- Quote End ---

    hi hippo

    In other word, i can only write app program in C language.

    Do you konw how to solve this problem for C++ compiler?

    Thx !
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It is difficult. And I am not an expert of c++.

    The compiler should be OK.

    But the stdc++ does not work.

    It hangs when enter c++ function.

    There are other solutions, such as STLport or uclibc++ .

    But I don&#39;t know how to use them.