It's difficult to help if you do not provide information about the triggered errors during compilation. Your programming skills can also not be judged by your posting.
Basically, you will need to build and run your code natively on your current development system to verify that it really compiles well. The next step is to provide all the needed header files and static/shared libraries for the ARM port of sqlite3 as well, otherwise you can't link an executable program for the target device.
I'm sure that the error messages do give some hints.
Last edited by Tinkster; 10-30-2010 at 04:12 PM.