Re: [sqlite] Sqlite ubuntu 12.10 compile/install
C is not a subset of C++, although it has been close. Do not compile C with a C++ compiler, or you'll discover one of the bits where if fails. -- Christopher On 31 January 2013 07:27, David Clark wrote: > This has been resolved...solution: > 1) use gcc not g++. > 2) grab the lastest source from sqlite.org. There was a version update in > doing that. But now it seems good on both > operating systems. > > Thank you, > > David Clark > > > >> >> From: Michael Black >>To: 'David Clark' ; 'General Discussion of SQLite >>Database' >>Sent: Wednesday, January 30, 2013 9:30 AM >>Subject: RE: [sqlite] Sqlite ubuntu 12.10 compile/install >> >>Use the amalgamation: >> >>cc -O -c sqlite3.c >> >>Then link it into your program. Most of us recommend avoiding shared >>libraries. >> >>If you need special features you may have to set some flags. >> >> >>-Original Message- >>From: sqlite-users-boun...@sqlite.org >>[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of David Clark >>Sent: Wednesday, January 30, 2013 9:06 AM >>To: sqlite-users@sqlite.org >>Subject: [sqlite] Sqlite ubuntu 12.10 compile/install >> >>Ok I have used sqlite in windows software no problems. >>I am now trying to use it in software I am porting to ubuntu 12.10 and I am >>finding that the source code I used under windows has compile issues. And >>when I downloaded the .gz file and ran ./configure on that fileset I got >>errors >>on that. >> >>I know I not being specific on the errors I got. But my question here is... >>basically under ubuntu what should my procedure be for installing and >>compiling sqlite? Yes I am new to ubuntu so the obvious is not so obvious >>on that OS. >> >>Thank you, >> >>David Clark >>___ >>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 -- Christopher Vance ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] Sqlite ubuntu 12.10 compile/install
This has been resolved...solution: 1) use gcc not g++. 2) grab the lastest source from sqlite.org. There was a version update in doing that. But now it seems good on both operating systems. Thank you, David Clark > > From: Michael Black >To: 'David Clark' ; 'General Discussion of SQLite >Database' >Sent: Wednesday, January 30, 2013 9:30 AM >Subject: RE: [sqlite] Sqlite ubuntu 12.10 compile/install > >Use the amalgamation: > >cc -O -c sqlite3.c > >Then link it into your program. Most of us recommend avoiding shared >libraries. > >If you need special features you may have to set some flags. > > >-Original Message- >From: sqlite-users-boun...@sqlite.org >[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of David Clark >Sent: Wednesday, January 30, 2013 9:06 AM >To: sqlite-users@sqlite.org >Subject: [sqlite] Sqlite ubuntu 12.10 compile/install > >Ok I have used sqlite in windows software no problems. >I am now trying to use it in software I am porting to ubuntu 12.10 and I am >finding that the source code I used under windows has compile issues. And >when I downloaded the .gz file and ran ./configure on that fileset I got >errors >on that. > >I know I not being specific on the errors I got. But my question here is... >basically under ubuntu what should my procedure be for installing and >compiling sqlite? Yes I am new to ubuntu so the obvious is not so obvious >on that OS. > >Thank you, > >David Clark >___ >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
Re: [sqlite] Sqlite ubuntu 12.10 compile/install
For the rest of my project I am using the g++ compiler. But for discussion here I ran your statement and got this: sqlite3.c: In function ‘sqlite3VXPrintf’: sqlite3.c:19892:39: error: ‘SrcList_item’ undeclared (first use in this function) sqlite3.c:19892:39: note: each undeclared identifier is reported only once for each function it appears in sqlite3.c:19892:53: error: expected expression before ‘)’ token sqlite3.c: In function ‘unixOpen’: sqlite3.c:27868:18: error: ‘UnixUnsedFd’ undeclared (first use in this function) sqlite3.c:27868:31: error: expected expression before ‘)’ token I get a similar error from g++...as far I can tell in my source code and header file. These two items are undeclared. Any ideas? Thank you, David Clark > > From: Michael Black >To: 'David Clark' ; 'General Discussion of SQLite >Database' >Sent: Wednesday, January 30, 2013 9:30 AM >Subject: RE: [sqlite] Sqlite ubuntu 12.10 compile/install > >Use the amalgamation: > >cc -O -c sqlite3.c > >Then link it into your program. Most of us recommend avoiding shared >libraries. > >If you need special features you may have to set some flags. > > >-Original Message- >From: sqlite-users-boun...@sqlite.org >[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of David Clark >Sent: Wednesday, January 30, 2013 9:06 AM >To: sqlite-users@sqlite.org >Subject: [sqlite] Sqlite ubuntu 12.10 compile/install > >Ok I have used sqlite in windows software no problems. >I am now trying to use it in software I am porting to ubuntu 12.10 and I am >finding that the source code I used under windows has compile issues. And >when I downloaded the .gz file and ran ./configure on that fileset I got >errors >on that. > >I know I not being specific on the errors I got. But my question here is... >basically under ubuntu what should my procedure be for installing and >compiling sqlite? Yes I am new to ubuntu so the obvious is not so obvious >on that OS. > >Thank you, > >David Clark >___ >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
Re: [sqlite] Sqlite ubuntu 12.10 compile/install
Use the amalgamation: cc -O -c sqlite3.c Then link it into your program. Most of us recommend avoiding shared libraries. If you need special features you may have to set some flags. -Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of David Clark Sent: Wednesday, January 30, 2013 9:06 AM To: sqlite-users@sqlite.org Subject: [sqlite] Sqlite ubuntu 12.10 compile/install Ok I have used sqlite in windows software no problems. I am now trying to use it in software I am porting to ubuntu 12.10 and I am finding that the source code I used under windows has compile issues. And when I downloaded the .gz file and ran ./configure on that fileset I got errors on that. I know I not being specific on the errors I got. But my question here is... basically under ubuntu what should my procedure be for installing and compiling sqlite? Yes I am new to ubuntu so the obvious is not so obvious on that OS. Thank you, David Clark ___ 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
[sqlite] Sqlite ubuntu 12.10 compile/install
Ok I have used sqlite in windows software no problems. I am now trying to use it in software I am porting to ubuntu 12.10 and I am finding that the source code I used under windows has compile issues. And when I downloaded the .gz file and ran ./configure on that fileset I got errors on that. I know I not being specific on the errors I got. But my question here is... basically under ubuntu what should my procedure be for installing and compiling sqlite? Yes I am new to ubuntu so the obvious is not so obvious on that OS. Thank you, David Clark ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users