[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] C++ standard includes for MMU gcc toolchain



Hi,


On Sat, Feb 14, 2009 at 10:50 AM, Marius Muja <mariusmuja@xxxxxxxxx> wrote:
Hi,

I cannot build C++ applications using the MMU glibc toolchain, the
compiler is complaining about missing standard include files. For
example for the following program:

Yes, it's a known limitation of the gcc-4.1.1 / MMU toolchain build we have based on.  We are currently working on the toolchain (MMU and noMMU) and libstdc++ support is part of that.  You can expect a test version of the tools within the next 3 or 4 weeks.

Sorry for the hassle,

John
 

-----------------------------
#include <iostream>
using namespace std;

int main()
{
   cout << "Test" << endl;
   return 0;
}
--------------------------------
I get:

$ mb-linux-g++ test.cc -o test
test.cc:1:20: error: iostream: No such file or directory
test.cc: In function 'int main()':
test.cc:6: error: 'cout' was not declared in this scope
test.cc:6: error: 'endl' was not declared in this scope

Marius
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/