On Wed, 27 Mar 2013 09:33:39 -0700 (PDT)
"[email protected]" <[email protected]> wrote:

> I ran: cc -O -c sqlite3.c shell.c  That created .o files after 1
> warning about function exprDup having a memset with constant zero
> length.
> 
> I compiled my program:  cc -I$HOME/lstp -O -c lstp_sql.c and have
> a .o for it as well
> 
> Now I am trying to figure out how to link them all together into an
> executable. I have tried many different combinations and none seem to
> work.

So you don't care about shell.c, right?  That's just the command shell;
the DBMS is implemented in sqlite3.c.  

I would think you want something like

        cc -o appname -I$HOME/lstp lstp_sql.c sqlite3.o

except that "cc" is actually obsolete!  ;-)  Without using the -std
option, you're telling the compiler to accept code predating even the
C89 standard, which is two standards ago.  

--jkl


_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to