Thread overview
How to get sqlite3.lib x64?
Oct 24, 2016
Andre Pany
Oct 24, 2016
John C
Oct 24, 2016
Vadim Lopatin
Oct 24, 2016
Andre Pany
October 24, 2016
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é


October 24, 2016
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.
October 24, 2016
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

October 24, 2016
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é