[uClibc] uClibc and C++

Mike Frysinger vapier at gentoo.org
Fri Dec 17 01:38:28 UTC 2004

On Thursday 16 December 2004 07:32 pm, Dmytro Bablinyuk wrote:
> I have seen uClibc++ but it looks like supports only i386.

why not see if uClibc++ works on powerpc ?

i just glanced through the code and didnt see any x86-specific junk ... also 
just did a quick test on my powerpc and it seemed to work ok:

$ file src/libuClibc++.so.0.1.6 
src/libuClibc++.so.0.1.6: ELF 32-bit MSB shared object, PowerPC or cisco 4500, 
version 1 (SYSV), not stripped
$ cat test.cpp
#include <iostream>
using namespace std;
int main() { cout << "HI" << endl; return 0; }
$ gcc test.cpp -Iinclude -Lsrc -luClibc++ -o test
$ file test
test: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), for 
GNU/Linux 2.4.1, dynamically linked (uses shared libs), not stripped
$ LD_LIBRARY_PATH=./src ./test

More information about the uClibc mailing list