Kiel W. wrote: > Ok, I'm definately thinking this is just a problem with my > understanding of the build process in *nix's and the quirks of Cygwin. > > I am getting the following warning with the default Makefile that is > generated. "libtool: link: warning: undefined symbols not allowed in > i686-pc-cygwin shared libraries" > > I found that this is because Windows(r) dlls can't have undefined > symbols in them and the warning can be removed with the > following flag: > '-no-undefined'. This also generates some other information > that is not > helpful to me (probably someone else). However, this didn't seem to > produce a static library (either .a or .lib). > > I ran across the 'make sqlite3.dll' target in the make file and tried > that. It succeeded without any problems and generated a .dll. I tried > the companion 'make sqlite3.lib' and this fails because it can't find > impdef/implib/lib. > > If anyone as other suggestions, or steps to build a static lib under > Cygwin I'd appreciate it, otherwise I may just bite the > bullet and see > about going the shared libary route. > > -- Kiel
download http://www.sqlite.org/sqlite-3.2.4.tar.gz $ wget http://www.sqlite.org/sqlite-3.2.4.tar.gz $ tar xvfz sqlite-3.2.4.tar.gz $ cd sqlite-3.2.4 $ ./configure $ make $ ---you can do make test here $ ls -lrt .libs total 22310 ( snip non-pertinent .o files, etc ) -rw-rw-rw- 1 Reid.Thompson Domain Users 7504336 Aug 26 13:07 libsqlite3.a -rw-rw-rw- 1 Reid.Thompson Domain Users 761 Aug 26 13:07 libsqlite3.lai lrwxrwxrwx 1 Reid.Thompson Domain Users 16 Aug 26 13:07 libsqlite3.la -> ../libsqlite3.la -rw-rw-rw- 1 Reid.Thompson Domain Users 125589 Aug 26 13:07 tclsqlite.o -rw-rw-rw- 1 Reid.Thompson Domain Users 7630154 Aug 26 13:07 libtclsqlite3.a -rw-rw-rw- 1 Reid.Thompson Domain Users 800 Aug 26 13:07 libtclsqlite3.lai lrwxrwxrwx 1 Reid.Thompson Domain Users 19 Aug 26 13:07 libtclsqlite3.la -> ../libtclsqlite3.la $ make install $ ls -lrt /usr/local/lib/*sql* -rwx------+ 1 Reid.Thompson Domain Users 758 Aug 26 2004 /usr/local/lib/libsqlite.la -rwx------+ 1 Reid.Thompson Domain Users 4952172 Aug 26 2004 /usr/local/lib/libsqlite.a -rwx------+ 1 Reid.Thompson Domain Users 282624 Mar 8 13:47 /usr/local/lib/sqlite3.dll -rwx------+ 1 Reid.Thompson Domain Users 340680 Mar 8 14:40 /usr/local/lib/libsqlite3.dll.a -rwx------+ 1 Reid.Thompson Domain Users 1148960 Mar 8 14:46 /usr/local/lib/cygsqlite3.dll -rwx------+ 1 Reid.Thompson Domain Users 761 Apr 12 11:52 /usr/local/lib/libsqlite3.la -rwx------+ 1 Reid.Thompson Domain Users 6981520 Apr 12 11:52 /usr/local/lib/libsqlite3.a reid