Re: Link CPP code with 2 ODBC driver( one IDS and one mySQL)
Posted in 2005
--=-w/q1WbBqotBZ3dLEy1X7 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > I want a piece of C/C++ code to read data from IDS tables and insert > them into another DB (MySQL) tables via ODBC PreparedStatements. > I cannot link my code with both ODBC drivers, since symbols from only > one is taken for the whole code. > Any suggestion would be of great help. You're correct (AFAIK), the informix ODBC on UNIX doesn't seem to play nice with driver managers (which is pretty silly at this point). Perhaps you can fork two children, a reader and a writer, and drive the data from the reader to the writer over a pipe? --=-w/q1WbBqotBZ3dLEy1X7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCrfDpLRePpNle04MRAh7HAJ4vl5X3iL0rHTOdO/VJ/Z9h4bhCtQCfYlDI FpiaHpk4b4WJPi23WfHSBAA= =fmc0 -----END PGP SIGNATURE----- --=-w/q1WbBqotBZ3dLEy1X7-- sending to informix-list