1. Taro L. Saito
  2. sqlite-jdbc
Issue #5 resolved

NativeDB.c : Errors when compiling with Visual Studio 2010

Grace Batumbya
created an issue

When using Visual Studio 2010 to build the SQLite library, compiling NativeDB.c throws the following errors:

{{{ NativeDB.c 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(399): error C2143: syntax error : missing ';' before 'const' 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(400): error C2143: syntax error : missing ';' before 'type' 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(401): error C2143: syntax error : missing ';' before 'type' 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(403): error C2065: 'strsql' : undeclared identifier 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(403): warning C4047: 'function' : 'const char ' differs in levels of indirection from 'int' 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(403): warning C4024: 'function through pointer' : different types for formal and actual parameter 3 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(405): error C2065: 'status' : undeclared identifier 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(406): error C2065: 'errorMsg' : undeclared identifier 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(406): warning C4047: 'function' : 'const char ' differs in levels of indirection from 'int' 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(406): warning C4024: 'throwexmsg' : different types for formal and actual parameter 2 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(407): error C2065: 'errorMsg' : undeclared identifier 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(407): warning C4022: 'sqlite3_free' : pointer mismatch for actual parameter 1 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(409): error C2065: 'status' : undeclared identifier 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(414): error C2143: syntax error : missing '{' before '__cdecl' 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(415): error C2373: 'Java_org_sqlite_NativeDB_errmsg' : redefinition; different type modifiers 1> D:\NexJExpress\work\ws\nexj-express-sqlite\bin\NativeDB.h(79) : see declaration of 'Java_org_sqlite_NativeDB_errmsg' 1>......\src\sqlite-jdbc\src\main\java\org\sqlite\NativeDB.c(416): warning C4047: 'return' : 'int' differs in levels of indirection from 'jstring' }}}

Comments (1)

  1. Log in to comment