Tony Kelman, on Wednesday, May 29, 2019 04:18 PM, wrote... >and you can avoid the issue by building a 64 bit dll, or in 32 bit via > >i686-w64-mingw32-gcc -shared -static-libgcc sqlite3.c -o sqlite3.dll >
This is what I needed above. The command I was using, i686-w64-mingw32-gcc -shared sqlite3.c -o sqlite3.dll will create a DLL, but it will have dependencies on some cygwin libs. This command, i686-w64-mingw32-gcc -shared -static-libgcc sqlite3.c -o sqlite3.dll creates a DLL with no dependencies. So, the option -static-libgcc is what I needed. Thanks. To summarize, when creating SQLite3 DLL or building any SQLite3 tools with cygwin, 1. Download the i686-w65-mingw32-gcc compiler with the setup tools (the 64 bit) 2. Get the source from sqlite.org 3. untar source 4. cd to the source directory 5. run this command: i686-w64-mingw32-gcc -shared -static-libgcc sqlite3.c -o sqlite3.dll Thanks, josé -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple