> 2.)     I moved SQLite3.c and SQLite3.h into my source folder and added them 
> to the project.  I made no changes to the code nor did I do anything special 
> when I added them to my project (i.e. I did not set any special compile 
> flags-I simply added the two files to the project).
> 3.)     I compiled and received 1200+ errors.

Try to change settings for sqlite3.c so that it is compiled as C not
as C++ (I don't know exactly where are those settings in XCode, I
believe you should know that).


Pavel


On Thu, May 26, 2011 at 10:49 AM, john darnell
<john.darn...@walsworth.com> wrote:
> Hello everyone.
>
> I am still trying to get SQLite to work on my Mac.  I want to make sure I am 
> doing what I should be doing.  Here are the steps I have taken:
>
> 1.)      I downloaded and uncompressed sqlite-autoconf-3070602.tar.gz from 
> the SQLite download page.
> 2.)     I moved SQLite3.c and SQLite3.h into my source folder and added them 
> to the project.  I made no changes to the code nor did I do anything special 
> when I added them to my project (i.e. I did not set any special compile 
> flags-I simply added the two files to the project).
> 3.)     I compiled and received 1200+ errors.
>
> Since then I have tried using the sqlite.dylib file that comes with OSX but 
> in doing so, some important SQLite functions (such as the prepare function) 
> were not found during the link process.
>
> My most recent attempt has been to follow the instructions that come with the 
> tarball I downloaded to create my own SQLite library.  When I run 
> ./configure, the procedure errors out, saying that it could not find an 
> acceptable C compiler in the $Path.
>
> Anyone have any new possibilities to try?
>
> BTW, (and I apologize for not sharing this sooner-it didn't occur to me that 
> it might be relevant until recently)  I am using SQLite3 in concert with the 
> InDesign SDK to produce an InDesign plugin (which we freely distribute to our 
> customers).  There is a possibility that the SDK has something going on that 
> causes the massive explosion of errors.
>
> And finally, the very first time I used SQLite3 on my Windows box, upon 
> compilation, it generated a whopping 200 errors, and continued to do so until 
> I turned off "using precompiled headers."  I cannot see a way to do this in 
> Xcode.  Perhaps that is my problem?
>
> R,
> John A.M. Darnell
> Senior Programmer
> Walsworth Publishing Company
> Brookfield, MO
> John may also be reached at 
> johnamdarn...@gmail.com<mailto:johnamdarn...@gmail.com>
>
> Trivia question Trivia question:  In The Lord of the Rings,Leglolas was a 
> prince among the Silvan Elves.  What was the name of his father the King?  
> For extra credit, what was his surname?
>
>
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to