|
Boost Users : |
Subject: Re: [Boost-users] Include sqlite3 in Jam.root file
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-07-07 19:10:05
AMDG
On 07/07/2012 03:57 PM, Damian wrote:
> Hi Steven,
>
> Thanks for the quick reply.
> I've made progress with your information but I still can't compile.
> The new error is with the linker: /usr/bin/ld: cannot find -lsqlite3
>
>
> Here is my Jamroot file (minus the hash marks):
>
> I would have thought that /usr/include was in the default search path for g++.
It should be. However, that isn't relevant
to your problem, since /usr/include contains
headers, not libraries.
> Any ideas?
>
Is sqlite3 a shared library? If so, you
probably need:
searched-lib sqlite3 : : <link>shared ;
If you need a non-default search path
use the <search> feature.
> ###############################################
> lib sqlite3 ;
>
> exe mainApp
> : ## sources
> sqlite3
> [ glob ./src/*.cpp ]
> : ## requirements
> <include>/usr/include
> <include>./pwiz_root/boost_1_43_0
> <include>./pwiz_root/libraries/boost_aux
> #<include>./src/threadpool/boost
> <include>./pwiz_root/pwiz
> <include>./pwiz_root/ext/boost/regex
> <library>./pwiz_root/pwiz/data/msdata//pwiz_data_msdata
> <library>./pwiz_root/pwiz/utility/misc//pwiz_utility_misc
I should point out that for consistency,
you can use <library>sqlite3.
> : ## requirements
> <warnings>all
> <threading>multi
> <toolset>gcc
> <link>static
> #<cxxflags>
> <optimization>speed
> <variant>release
> : ## default-build
> ;
>
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net