On Tue, 20 Dec 2005, Nuno Lopes said: > Many thanks for your help. I've been able to build a couple of programs and link them. (although I've not tested to run them yet, > only tomorrow I'll have access to a mips machine). > However not all programs are linking correctly. I've attached the errors I've got when building a Sony's example > (http://mega.ist.utl.pt/~ncpl/openr_gcc4.txt). Oh! Sorry, I missed a bit. The C++ library include files are very tightly tied to the version of libstdc++ in use, as `gcc -E -v -x c++ -' shows: Reading specs from /usr/packages.bin/gcc/3.4.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4.4/specs Configured with: /usr/packages/gcc/core/configure --with-gnu-ld --with-gnu-as --enable-shared --disable-static --prefix=/usr --verbose --enable-threads --with-system-zlib --enable-__cxa_atexit Thread model: posix gcc version 3.4.4 /usr/packages.bin/gcc/3.4.4/bin/../libexec/gcc/i686-pc-linux-gnu/3.4.4/cc1plus -E -quiet -v -iprefix /usr/packages.bin/gcc/3.4.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4.4/ -D_GNU_SOURCE - -mtune=pentiumpro ignoring nonexistent directory "/usr/packages.bin/gcc/3.4.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/include" ignoring duplicate directory "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../include/c++/3.4.4" ignoring duplicate directory "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../include/c++/3.4.4/i686-pc-linux-gnu" ignoring duplicate directory "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../include/c++/3.4.4/backward" ignoring duplicate directory "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/packages.bin/gcc/3.4.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../include/c++/3.4.4 /usr/packages.bin/gcc/3.4.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../include/c++/3.4.4/i686-pc-linux-gnu /usr/packages.bin/gcc/3.4.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../include/c++/3.4.4/backward /usr/packages.bin/gcc/3.4.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4.4/include /usr/local/include /usr/include End of search list. You'll have to symlink /usr/include/c++/4.0.1 (or whatever) to 3.3.4 (or whatever), or move the tree, or something like that. > What do I need to do now to make it link correctly? Despite the link-time errors, it's actually a compile-time problem. -- `I must caution that dipping fingers into molten lead presents several serious dangers.' --- Jearl Walker