You have missing a point. I need 64bit static library. so I have to compile the sqlite.
my solution is simple not complex. It was fine til v3.7.9. On Fri, Jan 20, 2012 at 10:21 AM, ASURADA <asurada at gmail.com <http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users>> wrote: >* Solution*>* + SQLite3 (Dynamic Library)*>* + SQLite3Static (Static >Library)*>* + SQLite3Test* Please simplify the setup. Please add sqlite3.c, sqlite3.h, sqlite3ext.h direct to SQLite3Test project. Remove the project SQLite3 and SQLite3Static dependencies and retry. Jens Solution + SQLite3 (Dynamic Library) + SQLite3Static (Static Library) + SQLite3Test Directory of Z:\...\SQLite3Library\sqlite 2012-01-16 23:04 91,925 shell.c 2012-01-20 17:50 4,711,082 sqlite3.c 2012-01-16 23:06 4,227 sqlite3.def 2012-01-16 23:06 577,621 sqlite3.dll 2012-01-20 17:52 332,315 sqlite3.h 2012-01-17 11:31 47,726 sqlite3.lib 2012-01-16 23:04 24,158 sqlite3ext.h Directory of Z:\...\SQLite3Library\VS2005\SQLite3 Directory of Z:\...\SQLite3Library\VS2005\SQLite3Library Directory of Z:\...\SQLite3Library\VS2005\SQLite3Test I have one solution. It contains 3 projects. projects are use same sqlite files. I try to compile source with Visual C++ 2010. It's fine. I can't understand this situation. What problem with Visual C++ 2005. *Jens Frederich>* Can you describe your project structure. One Visual Studio test project with sqlite3.c sqlite3.h inside or two separate projects? -------------------------------------------------------------------------------------------- ASURADA wrote: >** *>* What's the problem. How to fix this problem.*>* (I use Visual C++ 2005 >on Windows 7 x64)*>* **In your project, please define the _WIN32_WINNT macro >to 0x500 and try again. -- Joe Mistachkin -------------------------------------------------------------------------------------------- I use sqlite library that is compiled by myself. Because I need static library and 64bit library. So I try to make library for version 3.7.10. It was successfully. No error occur on compile time. But It was not work. My SQLite library gave me a error message. My code is fine with 3.7.9. In case of work with memory db (:memory:), it is fine. What's the problem. How to fix this problem. (I use Visual C++ 2005 on Windows 7 x64) test code ========================== :***int rst = sqlite3_open( "e://data.db <file:///E://data.db> <file:///E://data.db>", &pSQLite3 );*:****Error ========================== sqlite3.c 35391 if( isNT() ){ 35392 LPWSTR zTemp; 35393 nByte = osGetFullPathNameW((LPCWSTR)zConverted, 0, 0, 0) + 3; << Error occurred Line 35394 zTemp = sqlite3_malloc( nByte*sizeof(zTemp[0]) ); Error Message ========================== Unhandled exception at 0x00000000 in SQLite3Test.exe: 0xC0000005: Access violation reading location 0x00000000. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users