Results 1 to 2 of 2

Thread: C++ demo

  1. #1
    Join Date
    Jun 2002
    Posts
    10

    Question Unanswered: 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

  2. #2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •