Re: Informix Object Interface for C++ and mingw32-g++
Posted in 2006
On 8/9/06, Hervé <nospam@clubinternet.fr> wrote: > I try to compile (CodeBlocks / mingw32-g++) a sample program to connect to > my database. > The link with the Informix libthc++.lib doesn't work : > "main.cpp:28: undefined reference to `_imp___ZN12ITConnectionC1Ev'" > > however this library is declared in my link libraries. Unless the MinW32 version of G++ is known to be fully link-compatible with MS Visual C++ (Visual Studio, or whatever), you have a big problem. This is a generic problem with the C++ libraries provided with CSDK - if you don't use the same C++ compiler that the library was compiled with, you run into problems. It most frequently occurs on Linux - when the version og GCC/G++ changes from say 3.3 to 3.4 - but you are likely to be running into the Windows analogue of this problem. -- Jonathan Leffler #include <disclaimer.h> Email: jleffler@earthlink.net, jleffler@us.ibm.com Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/