www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to get sqlite3.lib x64?

reply Andre Pany <andre s-e-a-p.de> writes:
Hi,

I try to get sqlite3.lib for 64 Bit windows os.

I tried implib with the def file and the 64 Bit dll:
implib sqlite3_implib.lib sqlite3.def /system
-> App crash (Windows 10)

With the dll file defined:
implib sqlite3_implib.lib sqlite3.dll /system
-> Error message: Error(10): Error: cannot read DLL input file

I have the MS Build tools installed, but the example from
the SQLite site only shows, how to build a X86 dll file from
the C source code but not how to build the X86_64 lib file
for windows:
cl sqlite3.c -link -dll -out:sqlite3.dll

I tried different combinations but without success.
Could you give me some hints?

Kind regards
André
Oct 23 2016
next sibling parent John C <johnch_atms hotmail.com> writes:
On Monday, 24 October 2016 at 05:43:00 UTC, Andre Pany wrote:
 Hi,

 I try to get sqlite3.lib for 64 Bit windows os.

 I tried implib with the def file and the 64 Bit dll:
 implib sqlite3_implib.lib sqlite3.def /system
 -> App crash (Windows 10)

 With the dll file defined:
 implib sqlite3_implib.lib sqlite3.dll /system
 -> Error message: Error(10): Error: cannot read DLL input file

 I have the MS Build tools installed, but the example from
 the SQLite site only shows, how to build a X86 dll file from
 the C source code but not how to build the X86_64 lib file
 for windows:
 cl sqlite3.c -link -dll -out:sqlite3.dll

 I tried different combinations but without success.
 Could you give me some hints?

 Kind regards
 André
Do you have the Windows 10.0.10586 SDK installed? It includes a .lib file to link against the 64-bit DLL. It's called winsqlite3.lib.
Oct 24 2016
prev sibling parent reply Vadim Lopatin <coolreader.org gmail.com> writes:
On Monday, 24 October 2016 at 05:43:00 UTC, Andre Pany wrote:
 Hi,

 I try to get sqlite3.lib for 64 Bit windows os.

 I tried implib with the def file and the 64 Bit dll:
 implib sqlite3_implib.lib sqlite3.def /system
 -> App crash (Windows 10)

 With the dll file defined:
 implib sqlite3_implib.lib sqlite3.dll /system
 -> Error message: Error(10): Error: cannot read DLL input file

 I have the MS Build tools installed, but the example from
 the SQLite site only shows, how to build a X86 dll file from
 the C source code but not how to build the X86_64 lib file
 for windows:
 cl sqlite3.c -link -dll -out:sqlite3.dll

 I tried different combinations but without success.
 Could you give me some hints?

 Kind regards
 André
In https://github.com/buggins/ddbc there are 32bit and 64bit windows libs and dlls for sqlite3: https://github.com/buggins/ddbc/tree/master/libs
Oct 24 2016
parent Andre Pany <andre s-e-a-p.de> writes:
On Monday, 24 October 2016 at 07:20:34 UTC, Vadim Lopatin wrote:
 In https://github.com/buggins/ddbc there are 32bit and 64bit 
 windows libs and dlls for sqlite3:

 https://github.com/buggins/ddbc/tree/master/libs
Thanks a lot John and Vadim. Kind regards André
Oct 24 2016