|
Boost Users : |
From: Roman Neuhauser (neuhauser_at_[hidden])
Date: 2006-08-01 07:28:15
# tdumont_at_[hidden] / 2006-08-01 11:19:46 +0200:
> My code (a very small piece of code) uses boost:threads;
> It performs perfectly with the Debian Sarge version of boost,but
> segfaults with the version I installed myself (using bjam
> "-sTOOLS=gcc"). The Boost version I installed is: 1_33_1; Debian Sarge
> version is 1_32_06.
>
> I tried to runs the tests from inside the compiled 1_33_1 version: it
> works perfectly; but when I copy, say tennis.cpp, in an other directory,
> and compile and link it with version 1_33_1 (the one I compiled), it
> segfaults.
>
> I think it's only a question of compiler options.
Looks so, the most probable culprit is a mismatch between the
libraries and headers.
> ->My options (which makes the program crash): -DBOOST_HAS_THREADS
> -DBOOST_HAS_PTHREADS -D_REENTRANT
> What is false? This works with Debian installed version.
>
> ->what are the options used by bjam when compiling the tests?
>
> I need a personnal version of boost (not the debian one) because I want
> to use the property tree library...
You'll need to feed gcc with the right -L and -I switches.
"info gcc" will give you more information.
-- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991
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