Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!bellahs!kelly From: kelly@bellahs.UUCP (Kelly Kingdon) Newsgroups: comp.databases Subject: Re: Informix ESQL/C with C++ Message-ID: <626@bellahs.UUCP> Date: 25 Apr 91 14:15:02 GMT References: <741@strengur.is> Organization: Bell Atlantic Healthcare Systems Greenbrae Ca. Lines: 53 In article <741@strengur.is>, snorri@strengur.is (Snorri Bergmann) writes: > Has anyone used Informix ESQL/C with C++ ? The problem seems to be that > you need to define prototypes for every function that you use, otherwise > you get compile (C++) time errors. > > So the question is: > Has anyone defined those prototypes for C++ in order to compile > code generated by Infomrix esql/c successfully? > > Thank you all in advance, > -- > Snorri Bergmann | Internet: snorri@strengur.is > Strengur Consulting Engineers | Phone: +354 1 685130 > Storhofdi 15 | Telefax: +354 1 680628 > 112 Reykjavik Iceland Yes we are using esql with C++. We created the following include file that resolves the C++ prototype errors: extern "C" { int rtypmsize (int, int); int rtypalign (int, int); void rsetnull (int, void *); int risnull (int, void *); void _iqbeginwork( ... ); void _iqcopen( ... ); void _iqdatabase( ... ); void _iqdclcur( ... ); void _iqddclcur( ... ); void _iqclose( ... ); void _iqcommit( ... ); void _iqdbclose( ... ); void _iqfree( ... ); void _iqnftch( ... ); void _iqprepare( ... ); void _iqstmnt( ... ); void _iqdscribe( ... ); void _iqslct( ... ); void _iqxecute( ... ); } Hope this helps! Kelly ============================================================================ = Kelly Kingdon Bell Atlantic Healthcare Systems = = Phone: (415) 925-0121 Greenbrae, CA. = = = = E-mail: uunet!bellahs!kelly uunet!kelly@bellahs.UUCP = = = disclaimer: My opinions are my own and do not reflect those of my employer