mtangoo / wxDatabase

wxWidgets library for connecting to major relational database
http://mtangoo.github.io/database/index.html
37 stars 17 forks source link

Build failure with odbc #30

Open Jarod42 opened 3 weeks ago

Jarod42 commented 3 weeks ago

From ubuntu CI, i.e

sudo apt-get install unixodbc-dev odbc-postgresql libsqliteodbc
# [..] WxWidgets build...
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_MYSQL=1 -DENABLE_SQLITE=1 -DENABLE_PGS=1 -DENABLE_TDS=0 -DENABLE_ODBC=1 -DBUILD_SAMPLE=1
cmake --build build -j $(nproc)

produces

[ 56%] Building CXX object CMakeFiles/wxdatabase.dir/src/database/odbc/odbc_preparedstatement.cpp.o
/home/runner/work/wxDatabase/wxDatabase/src/database/odbc/odbc_param.cpp: In member function ‘SQLLEN* wxOdbcParameter::GetParameterLengthPtr()’:
/home/runner/work/wxDatabase/wxDatabase/src/database/odbc/odbc_param.cpp:255:10: error: invalid conversion from ‘long long int*’ to ‘SQLLEN*’ {aka ‘long int*’} [-fpermissive]
  255 |   return &m_nBufferLength;
      |          ^~~~~~~~~~~~~~~~
      |          |
      |          long long int*
mtangoo commented 3 weeks ago

I will need to test here. Which Ubuntu version are you on?

Jarod42 commented 3 weeks ago

CI runner is ubuntu-24.04