[campcaster-dev] compilation error in datastream.h
  • Hi,

    Under gcc 4.1.1 (Ubuntu Karmic) I am getting this error when I try to
    compile libodbc++:

    In file included from resultset.cpp:28:
    datastream.h: In member function ‘virtual int
    odbc::DataStreamBuf::overflow(int)’:
    datastream.h:58: error: ‘EOF’ was not declared in this scope

    I have tried versions 0.2.4pre4, 0.2.5, and the svn trunk, they all
    show the same error. I created this patch, feel free to use it if you
    like it:

    --- libodbc++-0.2.5/include/odbc++/types.h 2009-03-05 14:23:21.000000000 +0100
    +++ libodbc++-0.2.5-cstdio/include/odbc++/types.h 2010-01-02
    19:22:54.650900117 +0100
    @@ -25,6 +25,7 @@
    #include

    #include
    +#include
    #include
    #include

    The ticket in our bugtracker, for reference:
    http://trac.campware.org/campcaster/ticket/2354

    Regards,
    Ferenc