Compile error sqlite 3.4.2

Ulrich Telle ulrich.telle at gmx.de
Wed Sep 5 09:17:24 PDT 2007


Mohd Radzi Ibrahim schrieb:
> I'm using Visual Studio 2005 with wxSQLite3 wrapper. I have this error 
> at this line :
> 
> SQLITE_PRIVATE const unsigned char sqlite3UpperToLower[];
> 
> the error says:
> 
> .\..\wxsqlite3\sqlite3\src\sqlite3.c(6187) : error C2133: 
> 'sqlite3UpperToLower' : unknown size
> 
> 
> any suggestion on how to bypass this error?

Yes. Put this line into comment:

/* SQLITE_PRIVATE const unsigned char sqlite3UpperToLower[];*/

or delete the line completely.

The compiler chokes since the array size is not known at this place and 
it's not allowed to have an undefined size.

The array size is determined by initializing the array in line 10340 and 
following of the SQLite amalgamation distribution.

Regards,

Ulrich





More information about the wx-users mailing list