Re: [sqlite] Building Test Fixture under Visual Studio 2005

2007-04-13 Thread BardzoTajneKonto

 The offending lines are
 tclsqlite.c:
 EXTERN int Sqlite3_Init(Tcl_Interp *interp){
   Tcl_InitStubs(interp, 8.4, 0);
   Tcl_CreateObjCommand(interp, sqlite3, (Tcl_ObjCmdProc*)DbMain, 0,
 0);

I simply removed EXTERN from source and there were no other compile errors. 
But there were other problems when I tried to run tests on windows:
-tests crashed (I think only with SQLITE_CRASH_TEST enabled)
-there was some problem with tcl not being able to delete some file - after 
that all other tests didn't run
-tests were really slow: os_win.c ignores SQLITE_NO_SYNC - putting it in 
winSync() function speed up tests a lot


--
On wie jak zyskaƦ, a nie straciƦ.
Wideofelietony Tadeusza Mosza. Zobacz  http://link.interia.pl/f1a3c


-
To unsubscribe, send email to [EMAIL PROTECTED]
-



[sqlite] Building Test Fixture under Visual Studio 2005

2007-04-12 Thread Noah Hart
I am trying to build the test files under VS2005

I've created a new project and added all the test files with additional
libraries for TCL and the sqlite3 libraries.

All compiles fine, with the exception of the following errors
Error   21  error C2491: 'Sqlite3_Init' : definition of dllimport
function not allowed
Error   22  error C2491: 'Tclsqlite3_Init' : definition of dllimport
function not allowed
Error   23  error C2491: 'Sqlite3_SafeInit' : definition of
dllimport function not allowed
Error   24  error C2491: 'Tclsqlite3_SafeInit' : definition of
dllimport function not allowed

The offending lines are
tclsqlite.c:
EXTERN int Sqlite3_Init(Tcl_Interp *interp){
  Tcl_InitStubs(interp, 8.4, 0);
  Tcl_CreateObjCommand(interp, sqlite3, (Tcl_ObjCmdProc*)DbMain, 0,
0);
  Tcl_PkgProvide(interp, sqlite3, PACKAGE_VERSION);
  Tcl_CreateObjCommand(interp, sqlite, (Tcl_ObjCmdProc*)DbMain, 0, 0);
  Tcl_PkgProvide(interp, sqlite, PACKAGE_VERSION);
  return TCL_OK;
}
EXTERN int Tclsqlite3_Init(Tcl_Interp *interp){ return
Sqlite3_Init(interp); }
EXTERN int Sqlite3_SafeInit(Tcl_Interp *interp){ return TCL_OK; }
EXTERN int Tclsqlite3_SafeInit(Tcl_Interp *interp){ return TCL_OK; }

What step / configuration param for VS2005 I forgetting?

Regards,

Noah Hart





CONFIDENTIALITY NOTICE: 
This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation.




-
To unsubscribe, send email to [EMAIL PROTECTED]
-