I'm trying to get sqlite running in my C code. I went to the site SQLite Download Page and downloaded the precompiled shared library without tcl bindings(sqlite-3.5.4.so). I also downloaded the source. Then I tried to get the program on SQLite In 5 Minutes Or Less to compile and failed.

The problem is that I don't know to make it see the code in the so file. For my situation it is not an option to formally install the so file because I need to hand it in with my application. It compiles just fine, since I've got the sqlite.h file in the directory, the problem comes when I try to link it.

Ok, so here's what happens.

Code:
>ls -l
total 500
lrwxrwxrwx 1 sandro users     15 2007-12-15 13:21 libsqlite.so -> sqlite-3.5.4.so
-rw-r--r-- 1 sandro users 328232 2007-12-15 12:07 sqlite-3.5.4.so
-rw-r--r-- 1 sandro users 154538 2007-12-14 02:50 sqlite3.h
-rw-r--r-- 1 sandro users    795 2007-12-15 11:56 test.c
-rw-r--r-- 1 sandro users   2184 2007-12-15 17:04 test.o

> gcc -o "project" test.o -L. -lsqlite
test.c: In function ‘main’:
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: skipping incompatible ./libsqlite.so when searching for -lsqlite
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: cannot find -lsqlite
collect2: ld returned 1 exit status

> file sqlite-3.5.4.so
sqlite-3.5.4.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped

>nm sqlite-3.5.4.so
nm: sqlite-3.5.4.so: no symbols
Note: test.c is the code from the second link.

So, what happened here? What can make a .so incompatible? Is it because it's a 32 bit .so file and I'm on a 32 bit architecture?

Any and all advice would be greatly appreciated and I'd be happy to provide additional information.