Re: [sqlite] SQLite3 linking error on 64 bit linux machine
Hi Igor, Thanks for reply. This issue is resolved. I downloaded source code sqlite-autoconf-3070701.tar.gz and built on 64 bit machine. It built successfully and I am able to link with it. Thanks and Regards, Tarun On 8/31/11, Igor Tandetnikwrote: > Tarun wrote: >> I am trying to use SQLite3 library on 64 bit machine. I have copied >> libsqlite3.so from /usr/lib/ on 32bit linux machine to 64bit linux >> machine. > > How do you expect this to work? The library from 32-bit machine contains > 32-bit code. You can't link that with your 64-bit program. > > You'll likely have to build 64-bit SQLite library from sources. > -- > Igor Tandetnik > > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > -- Regards, - Tarun Thakur Module Lead NEC HCL System Technologies, Noida www.nechclst.in ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] SQLite3 linking error on 64 bit linux machine
Tarunwrote: > I am trying to use SQLite3 library on 64 bit machine. I have copied > libsqlite3.so from /usr/lib/ on 32bit linux machine to 64bit linux > machine. How do you expect this to work? The library from 32-bit machine contains 32-bit code. You can't link that with your 64-bit program. You'll likely have to build 64-bit SQLite library from sources. -- Igor Tandetnik ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
[sqlite] SQLite3 linking error on 64 bit linux machine
Hi All, I am trying to use SQLite3 library on 64 bit machine. I have copied libsqlite3.so from /usr/lib/ on 32bit linux machine to 64bit linux machine. While program compilation on 64bit machine, I am getting linking error given below: /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libsqlite3.so when searching for -lsqlite3 /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lsqlite3 Please let me know what I should do to get it resolved. Thanks in advance. -- Regards, - Tarun Thakur Module Lead NEC HCL System Technologies, Noida www.nechclst.in ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users