I found that reference to CC in a January posting in this mailing list.

I am obviously not a C programmer but I have to figure it out anyway.

The problem is resolved. I ended up finding a different example that had the 
correct syntax.

Thanks,

Brian
  

________________________________
 From: James K. Lowden <[email protected]>
To: [email protected] 
Cc: "[email protected]" <[email protected]>; General Discussion 
of SQLite Database <[email protected]> 
Sent: Wednesday, March 27, 2013 11:42 AM
Subject: Re: [sqlite] Ubuntu Linking
  
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