ODBC - Compile error on Ubuntu 64bit
  • Hi,

    I'm using Ubuntu 7.10 on an amd64. Compiling campcaster crashes with the dollowing error(s):

    ==========================================
    g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -DIN_ODBCXX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT resultset.lo -MD -MP -MF .deps/resultset.Tpo -c resultset.cpp -fPIC -DPIC -o .libs/resultset.o
    resultset.cpp: In member function 'std::istream* odbc::ResultSet::getAsciiStream(int)':
    resultset.cpp:1337: error: no matching function for call to 'odbc:: DataStream:: DataStream(odbc::ResultSet* const, void*&, int&, int, long int& )'
    datastream.h:105: note: candidates are: odbc:: DataStream:: DataStream(odbc::ErrorHandler*, void*, int, int, SQLINTEGER& )
    datastream.h:99: note: odbc:: DataStream:: DataStream(const odbc:: DataStream& )
    make[4]: *** [resultset.lo] Error 1
    make[4]: Leaving directory `/home/gedinixan/src/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404/src'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/gedinixan/src/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/gedinixan/src/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404/tmp/libodbc++-0.2.3-20050404'
    make[1]: *** [tmp/all.stamp] Error 2
    make[1]: Leaving directory `/home/gedinixan/src/campcaster/src/tools/libodbc++/libodbc++-0.2.3-20050404'
    make: *** [tmp/tools_setup.stamp] Error 2
    make: Leaving directory `/home/gedinixan/src/campcaster'
    ==========================================
    (I've added some spaces to prevent smilies)


    Earlier during the compile-process the following warning was displayed, which may be related to my problem:

    checking for sqlext.h... yes
    checking sqlucode.h usability... no
    checking sqlucode.h presence... yes
    configure: WARNING: sqlucode.h: present but cannot be compiled
    configure: WARNING: sqlucode.h: check for missing prerequisite headers?
    configure: WARNING: sqlucode.h: see the Autoconf documentation
    configure: WARNING: sqlucode.h: section "Present But Cannot Be Compiled"
    configure: WARNING: sqlucode.h: proceeding with the preprocessor's result
    configure: WARNING: sqlucode.h: in the future, the compiler will take precedence
    configure: WARNING: ## ------------------------------------ ##
    configure: WARNING: ## Report this to freeodbc++@orcane.net ##
    configure: WARNING: ## ------------------------------------ ##
    checking for sqlucode.h... yes


    I tried both, the 1.3.0 release and the current svn version, both giving me the same error. Can anybody help me fix this?

    p.s.: For my next posts - is there a way to disable smilies?