Informix

Informix

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only
  • 1.  demo/c++ link failure

    Posted 10/12/22 04:54 PM
    Hi all,

    I am working on HPUX 9000/800 platform, and I am trying to build the c++ demo code provided with the Informix Client 14.10.

    Because I don't have aCC compiler I modified the makefile in order to use gcc and c++ compilers.

    Unfortunately, I get an error during the link phase.

    For instance, here is the command line performed by the make file:

    > /gcc_install_dir/local/bin/c++ -DNO_WIN32 -fPIC -g -Wall -Wextra -pthread -O0 -isystem/gcc_install_dir/local/include -ext -D__STDCPP__ -D_PROTOTYPES -DMITRACE_OFF -DIT_HAS_DISTINCT_LONG_DOUBLE -DIT_COMPILER_HAS_LONG_LONG -I-L/driver/cli3.70//incl -I/informixConnect_1410/incl/public -I/informixConnect_1410/incl/c++ -I/informixConnect_1410/incl/dmi -I/informixConnect_1410/incl/esql -c tabcnt.cpp

    > /gcc_install_dir/local/bin/c++ -o tabcnt tabcnt.o -L/informixConnect_1410/lib/c++ -lifc++ -L/informixConnect_1410/lib/dmi -lifdmi -L/informixConnect_1410/lib/esql -L/informixConnect_1410/lib -lifsql -lifasf -lifgen -lifos -lifgls -lifglx /informixConnect_1410/lib/esql/checkapi.o -lm -lV3 -lcl -lsec -lnsl_s -lc -ldld

    /usr/ccs/bin/ld: Unsatisfied symbols:
    ITQuery::ExecOneRow(ITString const&, ITEssential**)(first referenced in tabcnt.o) (code)
    ITQuery::~ITQuery()(first referenced in tabcnt.o) (code)
    ITConnection::~ITConnection()(first referenced in tabcnt.o) (code)
    ITQuery::ITQuery(ITConnection const&)(first referenced in tabcnt.o) (code)
    ITConnection::Open() (first referenced in tabcnt.o) (code)
    ITString::~ITString()(first referenced in tabcnt.o) (code)
    ITConnection::ITConnection()(first referenced in tabcnt.o) (code)
    ITString::ITString(char const*)(first referenced in tabcnt.o) (code)
    collect2: ld returned 1 exit status
    *** Error exit code 1

    Is someone have any clue about this error please?
    Because the symbols are embedded on libifc++.a, so I don't understand why the linker cannot find them.

    Many thanks for any help.


    ------------------------------
    Stephane GONZALEz
    ------------------------------

    #Informix