Here is what I did to try to recreate your problem after building the sqlite dll with the usual ../sqlite/configure make procedure.
I downloaded the C/C++ magazine March example file, and extracted Owen.txt. I cut example 'Listing 2: C API example' and commented out the redundnant defintion of sqlite_vm. I named this file "main1.c" and placed it and a copy of the sqlite.dll in a directory. In msys I cd'd to this direcory and did: gcc -o main1.exe -I/usr/local/include sqlite.dll main1.c Note that I have a copy of sqlite.h in /usr/local/include -- if yours is in a different place, change that include path. The compile and link went fine. The application main1.exe runs. e Monday, March 29, 2004, 5:28:12 AM, you wrote: > Hi, > I have just downloaded the latest version of SQLite. I am attempting to > compile a mingw c test program running under W2000. > However, I get the folowing error: > undefined reference to sqlite_open > undefined reference to sqlite_<various> > undefined reference to sqlite_close > I have tried the quickstart c code as is, and the c/c++ magazine example > code from March. So, sqlite.h is included, and it is in the right directory. > Can anyone shed some light on this? > Regards, > Evan > ******************** > This email and any accompanying attachments may contain confidential and proprietary > information. This information is private and protected by law and, accordingly, if > you are not the intended > recipient, you are requested to delete this entire communication immediately and are > notified that any disclosure, copying or distribution of or taking any action based > on this information is > prohibited. > Emails cannot be guaranteed to be secure or free of errors or viruses. The sender > does not accept any liability or responsibility for any interception, corruption, > destruction, loss, late arrival > or incompleteness of or tampering or interference with any of the information > contained in this email or for its incorrect delivery or non-delivery for whatsoever > reason or for its effect on any > electronic device of the recipient. > If verification of this email or any attachment is required, please request a > hard-copy version. > ******************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]