From: blak on 14 Dec 2006 09:05 Hello I'am compiling wxGTK-2.8.0 and getting error. Configure options: --enable-unicode --enable-aui --enable-xrc Errors: ../src/common/db.cpp: In member function `bool wxDb::Open(const wxString&, const wxString&, const wxString&, bool)': ../src/common/db.cpp:906: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `2' to `RETCODE SQLConnect(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp: In member function `bool wxDb::Open(wxDb*)': ../src/common/db.cpp:966: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `3' to `RETCODE SQLDriverConnect(void*, void*, UCHAR*, SWORD, UCHAR*, SWORD, SWORD*, UWORD)' ../src/common/db.cpp:981: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `2' to `RETCODE SQLConnect(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp: In member function `bool wxDb::getDataTypeInfo(SWORD, wxDbSqlTypeInfo&)': ../src/common/db.cpp:1664: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:1664: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp: In member function `bool wxDb::DispAllErrors(void*, void*, void*)': ../src/common/db.cpp:1826: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `4' to `RETCODE SQLError(void*, void*, void*, UCHAR*, SDWORD*, UCHAR*, SWORD, SWORD*)' ../src/common/db.cpp: In member function `bool wxDb::GetNextError(void*, void*, void*)': ../src/common/db.cpp:1854: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `4' to `RETCODE SQLError(void*, void*, void*, UCHAR*, SDWORD*, UCHAR*, SWORD, SWORD*)' ../src/common/db.cpp: In member function `bool wxDb::DropView(const wxString&)': ../src/common/db.cpp:2212: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `2' to `RETCODE SQLExecDirect(void*, UCHAR*, SDWORD)' ../src/common/db.cpp: In member function `bool wxDb::ExecSql(const wxString&)': ../src/common/db.cpp:2245: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `2' to `RETCODE SQLExecDirect(void*, UCHAR*, SDWORD)' ../src/common/db.cpp: In member function `bool wxDb::GetData(UWORD, SWORD, void*, SDWORD, SQLINTEGER*)': ../src/common/db.cpp:2381: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:2381: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp: In member function `int wxDb::GetKeyFields(const wxString&, wxDbColInf*, UWORD)': ../src/common/db.cpp:2426: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `6' to `RETCODE SQLPrimaryKeys(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:2437: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:2437: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp:2456: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `6' to `RETCODE SQLForeignKeys(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:2469: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:2502: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `12' to `RETCODE SQLForeignKeys(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:2514: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp: In member function `wxDbColInf* wxDb::GetColumns(wxChar**, const wxChar*)': ../src/common/db.cpp:2622: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `4' to `RETCODE SQLColumns(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:2630: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `6' to `RETCODE SQLColumns(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:2650: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp: In member function `wxDbColInf* wxDb::GetColumns(const wxString&, UWORD*, const wxChar*)': ../src/common/db.cpp:2778: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `4' to `RETCODE SQLColumns(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:2786: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `6' to `RETCODE SQLColumns(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:2808: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp: In member function `int wxDb::GetColumnCount(const wxString&, const wxChar*)': ../src/common/db.cpp:3285: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `4' to `RETCODE SQLColumns(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:3293: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `6' to `RETCODE SQLColumns(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp: In member function `wxDbInf* wxDb::GetCatalog(const wxChar*)': ../src/common/db.cpp:3378: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `4' to `RETCODE SQLTables(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:3403: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:3416: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp: In member function `bool wxDb::Catalog(const wxChar*, const wxString&)': ../src/common/db.cpp:3485: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `4' to `RETCODE SQLColumns(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:3512: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp: In member function `bool wxDb::TableExists(const wxString&, const wxChar*, const wxString&)': ../src/common/db.cpp:3620: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `4' to `RETCODE SQLTables(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:3628: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `6' to `RETCODE SQLTables(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp: In member function `bool wxDb::TablePrivileges(const wxString&, const wxString&, const wxChar*, const wxChar*, const wxString&)': ../src/common/db.cpp:3687: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `4' to `RETCODE SQLTablePrivileges(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:3694: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `6' to `RETCODE SQLTablePrivileges(void*, UCHAR*, SWORD, UCHAR*, SWORD, UCHAR*, SWORD)' ../src/common/db.cpp:3708: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:3708: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp:3711: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:3711: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp:3714: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:3714: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp:3717: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:3717: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp:3720: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:3720: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp:3723: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:3723: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp:3726: error: `SQL_C_WCHAR' was not declared in this scope ../src/common/db.cpp:3726: warning: unused variable 'SQL_C_WCHAR' ../src/common/db.cpp: In function `bool wxDbGetDataSource(void*, wxChar*, SWORD, wxChar*, SWORD, UWORD)': ../src/common/db.cpp:4462: error: cannot convert `SQLTCHAR*' to `UCHAR*' for argument `3' to `RETCODE SQLDataSources(void*, UWORD, UCHAR*, SWORD, SWORD*, UCHAR*, SWORD, SWORD*)' make: *** [odbcdll_db.o] Error 1 --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: chris elliott on 14 Dec 2006 10:38 blak wrote: > Hello > I'am compiling wxGTK-2.8.0 and getting error. > Configure options: --enable-unicode --enable-aui --enable-xrc i thought from reading the lists that Unicode and odbc were not compatible - does it work without Unicode? chris --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: blak on 14 Dec 2006 10:48 On Thu, 14 Dec 2006 15:38:00 +0000 chris elliott <biol75(a)york.ac.uk> wrote > i thought from reading the lists that Unicode and odbc were not > compatible - does it work without Unicode? Well I dont really heard about incompatibilities of Unicode and odbs. Thanks for suggestion I will try to search about. I have compiled wxGTK-2.8.0RC1 with the same flags without problems. One more thing I dont use --enable-odbs flag in configure. With Regards --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: Eric Laly on 15 Dec 2006 06:10 blak a �crit : > On Thu, 14 Dec 2006 15:38:00 +0000 chris elliott <biol75(a)york.ac.uk> > wrote >> i thought from reading the lists that Unicode and odbc were not >> compatible - does it work without Unicode? > > Well I dont really heard about incompatibilities of Unicode and odbs. > Thanks for suggestion I will try to search about. I'm using odbc an unicode since 2.6. The only problem I have is with the Insert method of wxDbTable which is not working. But no problem with QueryBySqlStmt so I'm using it to insert data in a table. > > I have compiled wxGTK-2.8.0RC1 with the same flags without problems. One > more thing I dont use --enable-odbs flag in configure. Successfully compile and trying with the wxPython sources. Just modified the debian/rules to include --with-odbc and I have all my debian packages. I've just tried them with two little programs which uses ODBC (one for reading and one for writing in a table) and all is working like with 2.6.3. No problem for read and the Insert method is not working: Fatal Error: INSERTION ERROR: ODBC errors: SQL State = S1C00 Native Error Code = 10 Error Message = Unrecognized C_parameter type in copy_statement_with_parameters All others things I'm using are OK like before.(So I continue to using QueryBySqlStmt to insert data) Hope that help. And many thanks to all the wxWidgets team. Regards. �ric. --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: blak on 15 Dec 2006 10:39 On Fri, 15 Dec 2006 12:10:45 +0100 Eric Laly <elaly(a)free.fr> wrote > Hope that help Actually I just compile wxGTK without odbs support for now. I just can't proceed on compiling with odbs. May be there is problems with my system I don't now. Thanks for trying to help. Regards --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
|
Next
|
Last
Pages: 1 2 Prev: Yield(), WXUNUSED() and compile errors with wxMSW2.8.0rc1 Next: Font path |