Thanks for your reply Kees.

I am using kore web server and I want to pass sqlite library in the LDFLAGS
option to the kore webserver. ( https://kore.io/doc/#cli )

For this purpose, I would like to compile it as a library, I wont be able
to pass the sqlite3.c in the list of sources.

Can you please tell me how to compile it as a library on Mac OSX and Linux
platforms ?

On Wed, Jul 1, 2015 at 7:28 PM, Kees Nuyt <k.nuyt at zonnet.nl> wrote:

> On Wed, 1 Jul 2015 14:28:37 +0530, Prakash Premkumar
> <prakash.prax at gmail.com> wrote:
>
> >Hi,
> >
> >Can you please tell me how to compile sqlite as a library and link with
> >other applications using the "-L" flag ?
>
> That depends on the operating system you want to use it on.
> For many common platforms a precompiled binary is available on
> the download page:
> http://www.sqlite.org/download.html
>
> The link recipe depends on your platform and toolchain.
> Oftentimes, is it sufficent to add the sqlite3 amalgamation
> source (which you can make with 'make sqlite3.c') to your list
> of sources. For example the sqlite3 command line tool is build
> using:
>         gcc ${CFLAGS} -o sqlite3 sqlite3.c src/shell.c
>
> More info:
> http://www.sqlite.org/howtocompile.html
>
> I hope this helps. If you need more detailed info, please reply
> with the specifications of your platform.
>
> --
> Regards,
>
> Kees Nuyt
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>

Reply via email to