Re: ESQL/C compilation problems
Posted in 2000
From: Peter Christmeier <Peter.Christmeier@nortelnetworks.com> > >--------------B7FC0AD3058EBF3596EDFE19 >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit > >Hi! > >I am just about modifying an existing C program that contains several >ESQL commands to (obviously) access a database. I am working with HPUX >10.20 on a B180. The program used to be compiled using gcc, and I only >changed to use HP's CC compiler. > >After removing all inaccuracies that gcc wouldn't have complained about >like type castings, etc., there are two error messages that still >reside. The following is a screenshot from the compilation: > > > /opt/langtools/lbin/cpp.ansi -I/opt/informix/incl/esql -D__hp9000s700 >-D_PA_RISC1_1 -$ -Z -Dc_plusplus -D__cplusplus -D__hp9000s800 -D__hppa >-D__hpux -D__unix -Dhp9000s800 -Dhppa -Dhpux -Dunix -I/opt/CC/include/CC >-I/usr/include ppDump.c /var/tmp/AAAa15325.i > /opt/CC/lbin/cfront +a0 +b1 +T/var/tmp/BAAa15325 +s +t/var/tmp/CAAa15325 >+fppDump.c -g/var/tmp/DAAa15325.x +XCppDump.o </var/tmp/AAAa15325.i >CC: "ppDump.ec", line 297: error: unexpected 1 argument for _iqnprep() >(1265) >CC: "ppDump.ec", line 310: error: undefined function _iqcddcl called (1286) >CC: "ppDump.ec", line 310: error: undefined function _iqlocate_cursor >called (1286) >CC: "ppDump.ec", line 316: error: undefined function _iqdescribe called >(1286) >CC: "ppDump.ec", line 324: error: undefined function _iqdcopen called >(1286) >CC: "ppDump.ec", line 346: error: undefined function _iqcftch called (1286) >CC: "ppDump.ec", line 363: error: undefined function _iqfree called (1286) >CC: "ppDump.ec", line 599: error: unexpected 1 argument for _iqnprep() >(1265) >CC: "ppDump.ec", line 880: error: unexpected 1 argument for _iqnprep() >(1265) >CC: "ppDump.ec", line 1019: error: unexpected 1 argument for _iqnprep() >(1265) >CC: "ppDump.ec", line 1286: error: unexpected 1 argument for _iqnprep() >(1265) >CC: "ppDump.ec", line 1531: error: undefined function _iqconnect called >(1286) >CC: "ppDump.ec", line 1600: error: undefined function _iqdisconnect called >(1286) > removing ppDump.o > removing /var/tmp/AAAa15325.i > removing /var/tmp/BAAa15325 > removing /var/tmp/CAAa15325 > removing /var/tmp/DAAa15325.x > >All the lines refer to SQL commands. I am not a database expert, so I am >pretty surprised the new compiler is complaining in that way. >Can somebody help me getting rid of these errors? 1. Please don't post MIME in this newsgroups. 2. Use the esql command to compile -- you're missing at least one library by the looks of it. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.