I tried with the following flags : gcc -arch x86_64 -o sqlite3.o sqlite3.c shell.c
and > gcc -m32 -o sqlite3.o sqlite3.c shell.c but both results in the same error. Can you please help me solve this ? On Thu, Jul 2, 2015 at 2:47 PM, Andy Ling <Andy.Ling at quantel.com> wrote: > > 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 > > > > I'm guessing, but it looks like your compiling for 64bit and linking to a > 32bit system > or vice versa. > > Regards > > 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 >