2010 05 12 23 15 [x64] 編譯 sqlite 在 x64 平台.

到 http://www.sqlite.org/download.html 下載

sqlite-amalgamation-3_6_23_1.zip

因為這個zip是把所有.c檔合併成一個。

所以,只需要在 VC2008 ,

開啟新的 Project (File -> New -> Project ...),

Visual C++ -> Win32 -> Win32 Console Application.

輸入 Name : sqlite64 ,和所要放置的 Location ,

按下『確定』,選『Next』,

Application Type:DLL

Additional Option:Empty Project

選『Finish』完成。

然後把所解開的 sqlite3.c 拉進 Project 的 Source 裡。

Buld -> Configuration Manager -> <New ...> 新增新的 x64

不要用 Copy From win32.

然後選 Project -> Properties,

Configuration Properties -> Genernal ,

Configuration Type : Dynamic Library (dll)

Character Set : Use Multi-Byte Character Set

Configuration Properties -> C/C++ -> Preprocessor

Preprocessor Definitions : SQLITE3_EXPORTS;THREADSAFE;SQLITE_ENABLE
_COLUMN_METADATA

Linker -> Outout File :$(Outdir)sqlite64.dll

Linker -> Input -> Module definition File -> sqlite3.def

剩下就選編譯sqlite64.dll 就好了~

 

PS : 已編譯好的 sqlite64.dll 在此下載