dwilliamsvancouv

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: using VisualGDB with sqlite3 #2692
    dwilliamsvancouv
    Participant

    This was a good question. I asked my dev team member who did the install exactly what parameters he used in the get-apt command. It turned out that he only installed sqlite3, but did not install the libsqlit3-dev package. I subsequently did this:

    get-apt install libsqlite3-dev

    Now my VisualGDB Project Properties – Makefile settings can see the library when I add sqlite3 to the Library names list. I think I’m over this problem.

    My only other question is this. Where do I put the sqlite3.h file so VisualGDB knows about the library? Do I put this pathname in the Include directories?

    in reply to: using VisualGDB with sqlite3 #2690
    dwilliamsvancouv
    Participant

    When I do this:
    cd /usr/lib
    find . | grep libsqlite3

    I get this:
    ./libsqlite3.so.0
    ./libsqlite3.so.0.8.6

    The first one is a symbolic link to the second. Do I need all the other files?

    I created a simple “hello world” sample c source file and used the verbose option as you suggested. The following is what I did:
    gcc sample.c -lsqlite3 -v

    I tried to attach the result as a file, but the uploader for this board would not allow any and every extension I tried to use. I have pasted it below:

    winsys@PCMVDX:~$ gcc sample.c -lsqlite3 -v
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v –with-pkgversion=’Ubuntu 4.4.3-4ubuntu5′ –with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs –enable-languages=c,c++,fortran,objc,obj-c++ –prefix=/usr –enable-shared –enable-multiarch –enable-linker-build-id –with-system-zlib –libexecdir=/usr/lib –without-included-gettext –enable-threads=posix –with-gxx-include-dir=/usr/include/c++/4.4 –program-suffix=-4.4 –enable-nls –enable-clocale=gnu –enable-libstdcxx-debug –enable-plugin –enable-objc-gc –enable-targets=all –disable-werror –with-arch-32=i486 –with-tune=generic –enable-checking=release –build=i486-linux-gnu –host=i486-linux-gnu –target=i486-linux-gnu
    Thread model: posix
    gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
    COLLECT_GCC_OPTIONS=’-v’ ‘-mtune=generic’ ‘-march=i486’
    /usr/lib/gcc/i486-linux-gnu/4.4.3/cc1 -quiet -v sample.c -D_FORTIFY_SOURCE=2 -quiet -dumpbase sample.c -mtune=generic -march=i486 -auxbase sample -version -fstack-protector -o /tmp/ccv1nAae.s
    GNU C (Ubuntu 4.4.3-4ubuntu5) version 4.4.3 (i486-linux-gnu)
    compiled by GNU C version 4.4.3, GMP version 4.3.2, MPFR version 2.4.2-p1.
    GGC heuristics: –param ggc-min-expand=46 –param ggc-min-heapsize=31310
    ignoring nonexistent directory “/usr/local/include/i486-linux-gnu”
    ignoring nonexistent directory “/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../i486-linux-gnu/include”
    ignoring nonexistent directory “/usr/include/i486-linux-gnu”
    #include “…” search starts here:
    #include <...> search starts here:
    /usr/local/include
    /usr/lib/gcc/i486-linux-gnu/4.4.3/include
    /usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed
    /usr/include
    End of search list.
    GNU C (Ubuntu 4.4.3-4ubuntu5) version 4.4.3 (i486-linux-gnu)
    compiled by GNU C version 4.4.3, GMP version 4.3.2, MPFR version 2.4.2-p1.
    GGC heuristics: –param ggc-min-expand=46 –param ggc-min-heapsize=31310
    Compiler executable checksum: 5998ce5f1765e99eea5269f4c1e38d44
    COLLECT_GCC_OPTIONS=’-v’ ‘-mtune=generic’ ‘-march=i486’
    as -V -Qy -o /tmp/cclg5BPs.o /tmp/ccv1nAae.s
    GNU assembler version 2.20.1 (i486-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.20.1-system.20100303
    COMPILER_PATH=/usr/lib/gcc/i486-linux-gnu/4.4.3/:/usr/lib/gcc/i486-linux-gnu/4.4.3/:/usr/lib/gcc/i486-linux-gnu/:/usr/lib/gcc/i486-linux-gnu/4.4.3/:/usr/lib/gcc/i486-linux-gnu/:/usr/lib/gcc/i486-linux-gnu/4.4.3/:/usr/lib/gcc/i486-linux-gnu/
    LIBRARY_PATH=/usr/lib/gcc/i486-linux-gnu/4.4.3/:/usr/lib/gcc/i486-linux-gnu/4.4.3/:/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../:/lib/:/usr/lib/
    COLLECT_GCC_OPTIONS=’-v’ ‘-mtune=generic’ ‘-march=i486’
    /usr/lib/gcc/i486-linux-gnu/4.4.3/collect2 –build-id –eh-frame-hdr -m elf_i386 –hash-style=both -dynamic-linker /lib/ld-linux.so.2 -z relro /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.4.3/crtbegin.o -L/usr/lib/gcc/i486-linux-gnu/4.4.3 -L/usr/lib/gcc/i486-linux-gnu/4.4.3 -L/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.4.3/../../.. /tmp/cclg5BPs.o -lsqlite3 -lgcc –as-needed -lgcc_s –no-as-needed -lc -lgcc –as-needed -lgcc_s –no-as-needed /usr/lib/gcc/i486-linux-gnu/4.4.3/crtend.o /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crtn.o
    /usr/bin/ld: cannot find -lsqlite3
    collect2: ld returned 1 exit status

    I hope this is what you need to see the problem. I am still at a loss.

Viewing 2 posts - 1 through 2 (of 2 total)