Menu

Getting error while compiling with ocilib-4.0.1-windows on Visual Studio 2008

Anonymous
2015-02-25
2015-02-25
  • Anonymous

    Anonymous - 2015-02-25

    I am getting following error while compiling with ocilib-4.0.1-windows.
    I am building project on Visual Studio 2008

    I copied ocilib header in my project local directory and set the path variable to the the ocilib\lib64 and copied the libs locally in project also.

    1>c:\test\cpp\test2\test2\test2\ocilib_impl.hpp(3113) : error C2039: 'data' : is not a member of 'std::vector<_Ty>'
    1> with
    1> [
    1> _Ty=unsigned char
    1>

    help please !

     
  • Vincent Rogier

    Vincent Rogier - 2015-02-25

    Hi,

    Can you try with the latest versions of ocilib hpp files from GIT repository under include folder ?

    Regards,

    Vincent

     
  • Vincent Rogier

    Vincent Rogier - 2015-02-25

    In fact i am using the std::vector::data() that was introduced in C++11.
    It is supported by GCC for a long time and VS from VS2010.
    but not by VS2008...
    I'l try to to find a compliant way to do it in C++03.

     
  • Vincent Rogier

    Vincent Rogier - 2015-02-25

    Hi,

    I've committed a fix for it and replaced usages of std::vector::data() by older way in order to be compliant with C++03

    Get latest version of hpp files for GIT repository.

    Regards,

    Vincent

     
  • Anonymous

    Anonymous - 2015-02-25

    The no. of same error for errors are reduced for C2039: 'data' : is not a member of error C2039: 'data' : is not a member of 'std::vector<_Ty>'
    1> with
    1> [
    1> _Ty=unsigned char
    1>
    . but I am still getting the error.

    Now error is only coming at these locations.

    1>c:\test\cpp\test2\test2\test2\ocilib_impl.hpp(5813) : error C2039: 'data' : is not a member of 'std::vector<_Ty>'
    1> with
    1>
    1> _Ty=unsigned char
    1>

    1>c:\test\cpp\test2\test2\test2\ocilib_impl.hpp(5885) : error C2039: 'data' : is not a member of 'std::vector<_Ty>'
    1> with
    1>
    1> _Ty=unsigned char
    1>

    1>c:\test\cpp\test2\test2\test2\ocilib_impl.hpp(5980) : error C2039: 'data' : is not a member of 'std::vector<_Ty>'
    1> with
    1>
    1> _Ty=unsigned char
    1>

    1>c:\test\cpp\test2\test2\test2\ocilib_impl.hpp(6040) : error C2039: 'data' : is not a member of 'std::vector<_Ty>'
    1> with
    1>
    1> _Ty=unsigned char
    1>

    ..

    I guess same fix need to be applied in these places as well.

     
  • Vincent Rogier

    Vincent Rogier - 2015-02-25

    I thought i had replaced all occurrence.

    I re-checked and made another commit.

    i should be fine now !

     
  • Anonymous

    Anonymous - 2015-02-25

    Thanks !! the problem is solved now.