RE: [Boost-users] Re: install? and simple thread program.
I downloaded the latest version of Python from the website given below and
ran it with "rpm --rebuild python2-2.2-2.src.rpm." Python seems to install
correctly. I reset my env variables to PYTHON_ROOT=/usr and
PYTHON_VERSION=2.2. Yet when I ran bjam, it would say it couldn't find the
Python.h file within /usr/include/python2.2/. The directory is there, but
its empty. There is an another directory for python1.5. But this version
will not compile Boost correctly. Any suggestions or idea of why this is
happening?
Thanks.
Sanh.
-----Original Message-----
From: boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org] On Behalf Of David Abrahams
Sent: Monday, March 08, 2004 1:53 PM
To: boost-users@lists.boost.org
Subject: [Boost-users] Re: install? and simple thread program.
"Duong, Sanh N."
On Fri, 5 Mar 2004, Michael Glassford wrote:
"Duong, Sanh N."
wrote in message The Boost.Python example should still work just fine, if you follow the instructions. bjam doesn't use the mangled library names when building with cross-project dependencies. It worked for me just now. I went into libs/python/example and did
bjam test
and everything passed. No funky linking should is needed.
When running bjam test, in libs/python/example I'd get a lot of errors about templates and vars not define.
Let's see a few of them.
Another thing I noticed, when installing boost with
bjam "-sGXX=g++" "-sTOOLS=gcc" "--prefix=/home/boost_1_31_0" install
it would say, "Skipping Boost.Python library build due to missing or incorrect configuration couldn't find Python.h in "/include/python"
Right.
When I point the PYTHON_ROOT and PYTHON_VERSION to the correct path, I'd get a lot of errors when compiling. Is there a step I'm missing here?
Hard to say without seeing the errors. My guess is that you didn't set them correctly. Did you follow the directions at http://www.boost.org/libs/python/doc/building.html ?? -- Dave Abrahams Boost Consulting www.boost-consulting.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
"Duong, Sanh N."
I downloaded the latest version of Python from the website given below and ran it with "rpm --rebuild python2-2.2-2.src.rpm." Python seems to install correctly. I reset my env variables to PYTHON_ROOT=/usr and PYTHON_VERSION=2.2. Yet when I ran bjam, it would say it couldn't find the Python.h file within /usr/include/python2.2/. The directory is there, but its empty. There is an another directory for python1.5. But this version will not compile Boost correctly. Any suggestions or idea of why this is happening?
Sounds like you have a missing or incomplete python 2.2 installation. I'm not an rpm expert; I think you need to ask in a RedHat or Python forum. -- Dave Abrahams Boost Consulting www.boost-consulting.com
Hi everyone, I was trying the other day to "save" a boost::lambda::bind I made so I can reuse it a few lines later. I tried saving to a bind_t which seems to be the return type of bind() but I was getting some compilation errors. If I recall correctly, it wouldn't find bind_t in any of boost:: or boost::lambda:: Anyone knows if/how it's possible? Just in case you're don't know what I mean, here's a code snippet: bind_t myExpression = bind(&Object::method, this); f(myExpression); g(myExpression); Thanks in advance. George Diamantopoulos
On Mar 8, 2004, at 5:05 PM, George Diamantopoulos wrote:
Hi everyone,
I was trying the other day to "save" a boost::lambda::bind I made so I can reuse it a few lines later.
I tried saving to a bind_t which seems to be the return type of bind() but I was getting some compilation errors. If I recall correctly, it wouldn't find bind_t in any of boost:: or boost::lambda::
I've never used boost::lambda, but boost::bind returns an unspecified type.
Anyone knows if/how it's possible?
Yes; I regularly do this. Though the type is unspecified, it is assignable to a boost::function.
Just in case you're don't know what I mean, here's a code snippet:
bind_t myExpression = bind(&Object::method, this); f(myExpression); g(myExpression);
Try something like:
boost::function
participants (4)
-
David Abrahams
-
Duong, Sanh N.
-
George Diamantopoulos
-
Scott Lamb