|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
Hi,
I've just looked over the code quickly, but what I see is missing are the arguments to the "callback" function.. Code:
rc = sqlite3_exec(db, argv[2], callback, 0, &zErrMsg); P.S.: Please use the code tag - it makes it much more easier to review your code
__________________
"I never think of the future. It comes soon enough." - A.E Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org |
|
||||
Whoever wrote the compilation instructions is an ass.
You must tell GCC where it can find A.) any needed libraries that are outside the standard paths, and B.) any needed include files that are outside the standard paths. Unless you wish to invoke the linker or the pre-processor directly, in which case you have to tell them instead of the gcc front end, respectively. Add -I/usr/local/include -L/usr/local/lib to the compilation command.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
Dear DNAeon
I try the hints from TerryP and I works great - csqlite3 test.db "CREATE TABLE adrip (adrip TEXT PRIMARY KEY);" return nothing, so it seems ok - csqlite3 test.db "INSERT INTO adrip VALUES ('127.0.0.1');" return nothing, so it seems ok - csqlite3 test.db "SELECT * FROM adrip;" adrip = 127.0.0.1 so it works anyway Thanks you for your help and your code review (the time you spend to understand the code) |
Tags |
compile sqlite |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't compile gcc-4.3.3_20090101 | troberts | FreeBSD Ports and Packages | 7 | 12th January 2009 10:30 PM |
firefox3 will not compile | map7 | FreeBSD Ports and Packages | 8 | 14th July 2008 11:23 PM |
gio-fam-backend will not compile | map7 | FreeBSD Ports and Packages | 0 | 2nd July 2008 01:59 AM |
How come gnome2 won't compile? | Damien787 | FreeBSD Ports and Packages | 10 | 16th June 2008 05:20 PM |
Why wont this compile? | Johnny2Bad | FreeBSD General | 10 | 19th May 2008 11:30 PM |