Hi Andy,

I get the following error while trying to compile after linking with the
library

ld: warning: ignoring file
> /Users/prakash-2282/Downloads/sqlite-amalgamation-201506301510/libsqlite3.a,
> file was built for archive which is not the architecture being linked
> (x86_64):
> /Users/prakash-2282/Downloads/sqlite-amalgamation-201506301510/libsqlite3.a


Can you kindly help me resolve this ?

On Thu, Jul 2, 2015 at 1:51 PM, Andy Ling <Andy.Ling at quantel.com> wrote:

> > Can you please tell me how to compile it as a library on Mac OSX and
> Linux
> > platforms ?
> >
>
> Use your favourite compiler to generate sqlite3.o then use ar to wrap
> that up as a .a file. Give that file a name something like
> libsqlite3.a and you will be able to add -Lsqlite3 to your LDFLAGS.
>
> The ar command will be something like
>
> ar -rus libsqlite3.a sqlite3.o
>
> Check the man page for more information
>
> HTH
>
> Andy Ling
>
> ---------------------------------------------------------------------------------------
> This email has been scanned for email related threats and delivered safely
> by Mimecast.
> For more information please visit http://www.mimecast.com
>
> ---------------------------------------------------------------------------------------
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>

Reply via email to