Boost logo

Boost-Build :

Subject: [Boost-build] Multiple boost versions in the same application
From: Michele Cabano (michele.cabano_at_[hidden])
Date: 2018-02-05 13:39:23


Dear all,
At first let me excuse myself if a discussion already exists about same topic: I was not able to search the archives ( http://news.gmane.org/thread.php?group=gmane.comp.lib.boost.build ) found on boost community page (http://www.boost.org/community/groups.html#projects ).

My current problem can be described as follows:
• Main executable is A
• A use B and C libraries
• B library is a COTS software based on boost 1.46.1 • C library is self-maintained and it is based on boost 1.59.0

I would like to build a specific Boost version (and use it in library C) having:
• A different namespace (myBoost::foo instead of boost::foo) • Different macros (MY_BOOST_FOO instead of BOOST_FOO) • Different include directories (<myBoost/bar.hpp> instead of <boost/bar.hpp>)

I tried the following build procedure on win7-64 msvc10 platform, but I was not able to reach my goal on macros and include directories.

cd boost_1_59_0
mkdir namespaceCustomization
call bootstrap.bat
.\b2 tools/bcp
.\dist\bin\bcp --namespace=myBoost "" namespaceCustomization Copy b2.exe namespaceCustomization cd namespaceCustomization mkdir package call boostrap.bat
.\b2 --prefix=package --toolset=msvc-10.0 address-model=64 --build-type=complete install

Did I miss something?

Thanks in advance for any help

Michele

Il presente messaggio e-mail e ogni suo allegato devono intendersi indirizzati esclusivamente al/ai destinatario/i indicato/i e considerarsi dal contenuto strettamente riservato e confidenziale. Se non siete l'effettivo destinatario o avete ricevuto il messaggio e-mail per errore, siete pregati di avvertire immediatamente il mittente e di cancellare il suddetto messaggio e ogni suo allegato dal vostro sistema informatico. Qualsiasi utilizzo, diffusione, copia o archiviazione del presente messaggio da parte di chi non ne è il destinatario è strettamente proibito e può dar luogo a responsabilità di carattere civile e penale punibili ai sensi di legge.

________________________________

The contents of this email message and any attachments are intended solely for the addressee(s) and contain confidential and/or privileged information. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately notify the sender and then delete this message and any attachments from your system. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited. Unauthorized disclosure and/or use of information contained in this email message may result in civil and criminal liability.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk