Problems with compiling C++ examples
Posted in 1999
Topics: Installation, Setup & Upgrades
Hi, I've just downloaded and installed Online and Client SDK on RedHat 6.0. I tried to compile examples in /opt/informix/demo/c++. Linker generates this error : "undefined reference to __eh_pc". Any idea what's wrong ? Thanks in advance Petr
Petr CHALUPA wrote: > I've just downloaded and installed Online and Client SDK on RedHat > 6.0. > I tried to compile examples in /opt/informix/demo/c++. > Linker generates this error : "undefined reference to __eh_pc". > Any idea what's wrong ? That looks as if it might be an exception handler of some sort. And it looks as if the new version of G++ on RedHat 6.0 may have an incompatible name mangling convention compared with the version on RedHat 5.2, where the CSDK was ported. So, I suspect that the trouble is with the particular G++ compiler you've got. -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN #include <disclaimer.h>
Jonathan Leffler <jleffler@earthlink.net> wrote in message news:374CE3B1.4B13@earthlink.net... > Petr CHALUPA wrote: > > I've just downloaded and installed Online and Client SDK on RedHat > > 6.0. > > I tried to compile examples in /opt/informix/demo/c++. > > Linker generates this error : "undefined reference to __eh_pc". > > Any idea what's wrong ? > > That looks as if it might be an exception handler of some sort. > And it looks as if the new version of G++ on RedHat 6.0 may have > an incompatible name mangling convention compared with the version > on RedHat 5.2, where the CSDK was ported. So, I suspect that the > trouble is with the particular G++ compiler you've got. > > -- > Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) > Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN > #include <disclaimer.h> > Informix C++ examples work with libstd2.8 but don't work with libstd2.9 which is default for egcs-1.1.2