Sergi Blanch i Torné writes: > A few dais a go I ask something about an error that I am finding during the > linkage stage of a code migrated from vc++. I also ask this in the libstdc++ > list because the error was on this 'namespace'. Anyway, I have some progress > but it's not enough to have yet my binary... > > The makefiles for this code, the libraries and the program itself, was written > by me; but anything else. But I wrote wrong one library Makefile. After a > revision of it, and compiling as an static library I have also a similar > error, but not exactly the same. Maybe this could good to have a problem > perspective to solve it. > > Using the gcc-4.1.2 (on a suse 10.2), the link process explotes with this: > .../libISL.a(GaussianFit1D.o): In function `std::__simple_alloc<isl::Error, > std::__default_alloc_template<true, 0> >::allocate(unsigned int)': > /local/gcc-3.3.5/include/c++/3.3.5/bits/stl_alloc.h:232: undefined reference > to `std::__default_alloc_template<true, 0>::allocate(unsigned int)' > .../libISL.a(GaussianFit1D.o): In function `std::__simple_alloc<isl::Error, > std::__default_alloc_template<true, 0> >::deallocate(isl::Error*, unsigned > int)': > /local/gcc-3.3.5/include/c++/3.3.5/bits/stl_alloc.h:242: undefined reference > to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' > > I think this is a clearer answer. All the libraries, and the program, i am > trying to compile it with gcc-4.1.2, but this link process say something > about a gcc-3.3.5 that is also installed on the system. It looks that may. Make sure that nothing in either your PATH or LD_LIBRARY_PATH refers to /local/gcc-3.3.5. MAke sure thath nothing in your Makefile refers to it either. gcc won't find /local/gcc-3.3.5 by itself. Andrew.