This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Conflict between compilers


Hi, 

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.

>From the answer that I had from the libstdc++ list, this error could have 
relation with the common life between the 'libstdc++.so.6.0.8' and the 
'libstdc++.so.5.0.7'. How I can fix this?!

/Sergi.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]