[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Can't include SQLite libs in compile
From: |
Jordan H. |
Subject: |
Can't include SQLite libs in compile |
Date: |
Wed, 18 Dec 2013 10:34:12 -0800 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Relevant part of configure.ac:
PKG_CHECK_MODULES(SQLITE, [sqlite3 > $SQLITE_REQUIRED_VERSION])
AC_SUBST([SQLITE3_CFLAGS])
AC_SUBST([SQLITE3_LIBS])
Even without $SQLITE_REQUIRED_VERSION it still fails.
Relevant part of makefile.am:
program_CFLAGS += @SQLITE3_CFLAGS@
program_LDADD += @SQLITE3_LIBS@
I'm including sqlite3 in my header file:
#include <sqlite3.h>
I'm getting errors such as this one:
undefined reference to `sqlite3_prepare'
Any ideas why? I'm linking to it in the same way I'm including Gtk+,
which is linking correctly. I also browsed source code of other projects
to see how it was included and copied the code basically line-for-line.
I have installed all the packages I can think of related to sqlite but,
alas, still the pesky error.
Thanks in advance!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBCgAGBQJSseqkAAoJEOT99oqiSuRNY9kH/2BS6k+WEayCzdtc1ijyoCRa
8R50o66fLbS47ZE5C6j+E/aXD6t3gTo19+azwzIeMTcYu1nutWuv6g6jh+wqjToh
dJG6olkuJ4k50PEngUAGli+nPTkCfVANniY/v85NZ8OldgxIdA/MHl2HDhPioqEn
NWvdNzEuR+kREI1XItXyhK+DacYJBKbO7yrU+sy98rxwwXWOk9MCZR1nbbUuSoAb
YKOpOIKrIL3mvua1NHLOWkhc9TEILJGoJlc2e8h0Ry+l+Fj5GPoquiNxn5scS+F6
iKxodvBWFKDGrkvso6KKsc0Poh18x9lDXF4Nz4IxRA2esvIaucK3mEpXVU+zV20=
=hl1n
-----END PGP SIGNATURE-----
- Can't include SQLite libs in compile,
Jordan H. <=