At 16:48 26/01/2008 -0600, Darrick Hartman (lists) wrote:
>If you statically compile a program, you can copy it from CentOS to
>Astlinux and it will run. If it is dynamically linked, it will not work
>(without copying all of the dependencies). You could compile it in the
>development environment though without too much difficulty.
I've never compiled SQLite myself, and I've only played with C a little,
and it was a long time ago. So I'll take "without too much difficulty" with
a grain of salt :-)
===========
Compiling the latest SQLite source:
1. Download sqlite-3.5.4.tar.gz (don't know what sqlite-source-3_5_4.zip
and sqlite-amalgamation-3_5_4.zip
are for: Windows?)
2. tar xzvf ./sqlite-3.5.4.tar.gz
3. cd sqlite-3.5.4.tar.gz
4. ./configure
5. make (The libraries will be in ./.libs/)
6. make install
===========
Creating and compiling a C sample:
1. cd /tmp
2. vim dummy.c (http://sqlite.org/quickstart.html)
3. gcc -Wall dummy.c -o dummy:
dummy.c: In function âmainâ:
dummy.c:20: warning: implicit declaration of function âexitâ
dummy.c:20: warning: incompatible implicit declaration of built-in function
âexitâ
dummy.c:26: warning: incompatible implicit declaration of built-in function
âexitâ
/tmp/ccqbH65Q.o: In function `main':
dummy.c:(.text+0xdd): undefined reference to `sqlite3_open'
dummy.c:(.text+0xf1): undefined reference to `sqlite3_errmsg'
dummy.c:(.text+0x116): undefined reference to `sqlite3_close'
dummy.c:(.text+0x153): undefined reference to `sqlite3_exec'
dummy.c:(.text+0x184): undefined reference to `sqlite3_free'
dummy.c:(.text+0x18f): undefined reference to `sqlite3_close'
collect2: ld returned 1 exit status
===========
Google didn't return information on this type of error.
BTW, who builds the .mk files under /packages? Maybe I could contact the
person directly to check how to build the CLI version?
Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL
PROTECTED]