Herve, Did you use buildtool when you tried to compile the cpp program? It is possible to compile cpp programs with buildtool. Take a look at: http://cvs.sourceforge.net/viewcvs.py/leaf/src/bering-uclibc/contrib/yate/ for an example.
We also have a libcxx.lrp package available, which includes libgcc and libstdc++ libraries (compiled against uClibc). Eric > Thanks, by following the documentation, I am now able to compile C > programs. I have compiled the nice X10 control program Heyu for a friend. > http://heyu.tanj.com/heyu2/ > > > Sadly, DansGuardian is a C++ program, so things are getting harder. > Since I have plenty of space on my flash I told to myselff that I will > copy the binary and libstd++ on the router and then everything should > work... Not at all. > > Trying to compile an "Hello World" c++ program with the uClibc-gcc gives > me more headaches. > > # make hello > # g++ hello.cpp -o hello > # hello.cpp:1:20: iostream: No such file or directory > # hello.cpp: In function `int main()': > # hello.cpp:5: error: `cout' undeclared in namespace `std' > # make: *** [hello] Error 1 > > > Since g++ is configured to look in /usr/i386-linux-uclibc/include/g++ > directory, I copied local c++ include files is this directory. It does not > work. Local include files are not compatible with uClibc. > > # g++ -o hello hello.cpp > # In file included from /usr/i386-linux-uclibc/include/g++/bits/c+ > +locale.h:43, > # from /usr/i386-linux-uclibc/include/g++/iosfwd:46, > # from /usr/i386-linux-uclibc/include/g++/ios:44, > # from /usr/i386-linux-uclibc/include/g++/ostream:45, > # from /usr/i386-linux-uclibc/include/g++/iostream:45, > # from hello.cpp:1: > #/usr/i386-linux-uclibc/include/iconv.h:27:2: #error Attempted to > include iconv.h when uClibc built without locale support. > > > What should I do to compiled a c++ program compatible with the Bering- > uClib environment? > > Thanks. > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/