Building SQLite3 CLI without

Andrey Repin anrdaemon@yandex.ru
Sat Dec 3 16:23:14 GMT 2022


Greetings, Jose Isaias Cabrera!

> I can build SQLite DLL and use it under Windows without any problem using
> this command:

> i686-w64-mingw32-gcc -shared -static-libgcc sqlite3.c -o sqlite3.dll

To the best of my knowledge, you should not use cross-compilers directly.

> And I can use that DLL outside cygwin without any problem.
> I can also build the SQLite3.exe tool using this command:

>  i686-w64-mingw32-gcc -shared -static-libgcc shell.c -o sqlite3.exe

> The problem is that when I run this sqlite3.exe outside the cygwin environment, it gives me the error:

> "The code execution cannot proceed because cygwin1.dll was 
> not found. Reinstalling the program may fix this problem."

> Is there an option that I can do to build the tool without the need of the
> cygwin1.dll? I know that I can move the file in the same spot, but I want to
> create it without the need of it. Thanks for your support.

Yes, you should use a cross-compiler and specifically set the target to be
windows native executable.


-- 
With best regards,
Andrey Repin
Saturday, December 3, 2022 19:21:13

Sorry for my terrible english...



More information about the Cygwin mailing list