Re: [Boost-users] help needed picking up pthread.h with Visual Studio .NET 2003
boost-users-bounces@lists.boost.org wrote:
Andrew Marlow wrote:
I am trying to build boost 1.33.1 on Windoze using Visual Studio .NET 2003 (aka vc71). This seems to be build just fine using the default settings (bjam -sTOOLS=vc-7_1) but I need to do the build such that a win32 port of pthreads can be picked up. I need some help with this please.
What do you want to achieve?
1) Building the boost library on top of pthread instead of native WinThreads?
Yes. Once the boost libs (and a few examples) have built ok I will then release these as prebuilts. I will have to do this for a number of versions of Visual Studio. Then for VC71 I will use the prebuilt boost lib to build my own project. It will be developed using the VC71 IDE but will be built overnight by a perl script that uses msdev in command line mode. This overnight job will not build boost, it will pick up the boost prebuilt.
Please try to precise as possible, describing what you are trying to do, since there are a lot of possible scenarios to use the boost libraries.
Hopefully this is a bit clearer now.... -Andrew ******************************************************************************" The data and information (collectively called Information) herein is the sole property of ICAP. The Information is confidential, may be legally privileged and is intended solely for the use of the individual or entity to whom it is addressed. Unauthorised disclosure, copying or distribution of the Information is strictly prohibited and the recipient of the Information shall not redistribute the Information in any form to a third party. If you received this Information in error please tell us by reply (or telephone the sender) and delete all copies on your system. References in this Information to ICAP are references to ICAP plc, a company incorporated in England with registered number 3611426 whose registered office is 2 Broadgate, London, EC2M 7UR and where the context requires, includes its subsidiary and associated undertakings. As applicable, certain companies within the ICAP group are authorised and regulated by the Financial Services Authority. Any investment research sent from ICAP will provide an impartial and objective assessment of the securities, companies or other matters that are the subject of their research and our Conflicts of Interest Management Policy regarding investment research can be viewed by requesting a copy from your usual contact at ICAP. Please visit www.icap.com for further regulatory information including details regarding the European eCommerce Directive. *******************************************************************************" We have taken precautions to minimise the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. " *******************************************************************************
Andrew Marlow wrote:
1) Building the boost library on top of pthread instead of native WinThreads?
Yes. Once the boost libs (and a few examples) have built ok I will then release these as prebuilts.
Sorry this does not make sense to me, as this would imply your project will be using the boost library: Boost.Thread. So normally you wouldn't want to have them use the pthread implementation in turn. The only exception I can think of is when you are doing some performance testing. Usually the Boost.Thread on native windows API will be faster than on top of pthreads, since there is one emulation layer less.
I will have to do this for a number of versions of Visual Studio. Then for VC71 I will use the prebuilt boost lib to build my own project. It will be developed using the VC71 IDE but will be built overnight by a perl script that uses msdev in command line mode. This overnight job will not build boost, it will pick up the boost prebuilt.
So I assume you are attempting to build the boost library? If so, simply read the getting started from the boost homepage and then precompiler your library, which basically has to be done from the boost root directory: bjam -s"TOOLS=vc-7_1" install which will install to C:\Boost directory by default. (The above is for version 1.33, upcoming 1.34 is different. ) As an alternative you might also download the prebuilt binary versions of the lib. So where does the pthread enter into this now? Roland
participants (2)
-
Andrew Marlow
-
Roland Schwarz