Re: libc++ demos from CSDK doesn't compile on linux MDK9.1
Posted in 2003
You're right. SuSE has gcc 2.95, MDK8.2 gcc 2.96. I'm thinking about ESQL/C or CLI. Jonathan Leffler wrote: > petrxh wrote: >> I'd like to use libc++ library, > > Why? That's not a wholly facetious question. I'd recommend using > ESQL/C in preference. > >> but I can't compile even demos included with CSDK. >> It writes about undefined reference to all objects of libc++. >> Demos can be compiled on older linux versions including Suse8.0 and >> MDK8.2. It is probably caused by incompatible versions of gcc/glibc. >> Is there any way to use it on newer distributions (except of installing >> older compiler)? >> >> (gcc is 3.2.2, glibc 2.3.1) > > I'm moderately sure that you'd need a gcc 2.96 compiler, the same as > was used to build it. More precisely, I'm sure you need to use the > same compiler that was used to build the C++ libraries, and I think > that may be v2.96. The binary coding conventions used by G++ changed > enough between 2.x and 3.x to force a change in the naming, hence the > now missing symbols. Find out which compiler is in use on SuSE 8.0 > and MDK 8.2 (g++ --version), and I'd be moderately surprised to find > it is 3.x and very surprised to find it was 3.2.x. > >