If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > C++ demo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-17-02, 16:57
bzuborski bzuborski is offline
Registered User
 
Join Date: Jun 2002
Posts: 10
Question C++ demo

Does anybody know how to compile Informix c++ demo programs? I am using Makefile provided by Informix. Version is Informix 9.3 on Solaris 8. The compiler is Sun CC.


make all

/opt/SUNWspro/bin/CC -g -DIT_DO_NOT_SIMULATE_BOOL -DIT_COMPILER_HAS_LONG_LONG -I/usr/informix/incl/c++ -I/usr/informix/incl/dmi -I/usr/informix/incl -I/usr/informix/incl/esql -c testtype.cpp
/opt/SUNWspro//bin/CC -g -DIT_DO_NOT_SIMULATE_BOOL -DIT_COMPILER_HAS_LONG_LONG -I/usr/informix/incl/dmi -I/usr/informix/incl -I/usr/informix/incl/esql -G -o testtype.so testtype.o
/usr/informix/bin/esql blobload.ec -o blobload
"blobload.ec", line 48: Error: The function "exit" must have a prototype.
"blobload.ec", line 55: Error: argc is not defined.
"blobload.ec", line 57: Error: The type "char*[]" is incomplete.
"blobload.ec", line 65: Warning: The variable argc has not yet been assigned a value.
"blobload.ec", line 80: Error: Operand for operator "++" must be an lvalue.
"blobload.ec", line 85: Error: Operand for operator "++" must be an lvalue.
"blobload.ec", line 90: Error: Operand for operator "++" must be an lvalue.
"blobload.ec", line 95: Error: Operand for operator "++" must be an lvalue.
"blobload.ec", line 106: Error: Operand for operator "++" must be an lvalue.
"blobload.ec", line 109: Error: Operand for operator "++" must be an lvalue.
"blobload.ec", line 125: Error: Operand for operator "++" must be an lvalue.
"blobload.ec", line 139: Error: Badly formed expression.
"blobload.ec", line 164: Error: doing_what is not defined.
"blobload.ec", line 171: Error: The function "exit" must have a prototype.
"blobload.ec", line 193: Error: Use ";" to terminate declarations.
"blobload.ec", line 199: Error: The function "strcat" must have a prototype.
"blobload.ec", line 200: Error: The function "strcat" must have a prototype.
"blobload.ec", line 203: Error: The function "strcat" must have a prototype.
"blobload.ec", line 207: Error: The function "strcat" must have a prototype.
"blobload.ec", line 208: Error: The function "strcat" must have a prototype.
"blobload.ec", line 209: Error: The function "strcat" must have a prototype.
"blobload.ec", line 211: Error: The function "strcat" must have a prototype.
"blobload.ec", line 232: Error: Use ";" to terminate declarations.
"blobload.ec", line 240: Error: The function "strcat" must have a prototype.
"blobload.ec", line 241: Error: The function "strcat" must have a prototype.
"blobload.ec", line 242: Error: The function "strcat" must have a prototype.
Compilation aborted, too many Error messages.
*** Error code 1
make: Fatal error: Command failed for target `blobload
Reply With Quote
  #2 (permalink)  
Old 08-20-02, 07:38
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
What version of the CSDK are you using?
Did you set your LD_LIBRARY_PATH correctly? the esqlc libraries must be included.
__________________
rws
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On