program_options (Use "/" instead of "-")
Does program_options support use of "/" instead of "-"? Gordon.
Gordon Smith wrote:
Does program_options support use of "/" instead of "-"?
Yea, there's a 'style' parameter to 'parse_command_line': http://www.boost.org/regression-logs/cs-win32_metacomm/doc/html/parse_comman... and the values which can be 'or'-ed are at http://www.boost.org/regression-logs/cs-win32_metacomm/doc/html/enum.boost.p... I think what you want is (command_line_style::unix_style ^ command_line_style::allow_dash_for_short) | command_line_style::allow_slash_for_short HTH, Volodya
Hello again - Here's details of what goes wrong while following the instructions to Build and Install boost on Solaris 8: 1) Download Got boost_1_31_0.tar boost-build-2.0-m9.1.tar boost-jam-3.1.10.tar ok 2) Preparation Build yourself or use prebuilt. A prebuilt for Solaris 8 is not obviously available, so Build yourself: tar -xf boost-jam-3.1.10.tar cd boost-jam-3.1.10 sh ./build.sh gcc detected ok cd bin.solaris cp * /usr/local/bin completed ok, now bjam, jam, mkjambase and yyacc are in PATH configure the tools many unix systems come preconfigured this way and require no user intervention. 3) Supported toolsets gcc g++ is in PATH might need to set -sGCC_STDLIB_DIRECTORY=/opt/csw/gcc3/lib 4) Build and install tar xf boost_1_31_0.tar cd boost_1_31_0 bjam "-sTOOLS=gcc" install at this point the procedure fails and I get: Unable to load Boost.Build: could not find build system. --------------------------------------------------------- /homes/chuck/src/boost_1_31_0/boost-build.jam attempted to load the build system by invoking 'boost-build tools/build/v1 ;' but we were unable to find "bootstrap.jam" in the specified directory or in BOOST_BUILD_PATH (searching /homes/chuck/src/boost_1_31_0/tools/build/v1,/usr/share/boost-build). Please consult the documentation at 'http://www.boost.org'. Ok, so I go back and untar boost-build-2.0-m9.1.tar, cd into that where there IS a "bootstrap.jam" file and try bjam "-sTOOLS=gcc" install again, this time I get: Failed to find the project root for directory '.'. Did not find a project-root.jam file there or in any of its parent directories. Please consult the documentation at 'http://www.boost.org'. At this point I can't even guess what it wants. Any clue welcome. --Chuck
cswiger
Hello again - Here's details of what goes wrong while following the instructions to Build and Install boost on Solaris 8:
1) Download Got boost_1_31_0.tar
From where? The only official Boost releases are available from http://sourceforge.net/project/showfiles.php?group_id=7586, and those are all .tar.bz2 or .tar.gz files.
boost-build-2.0-m9.1.tar
You don't need that.
boost-jam-3.1.10.tar ok
You don't need that either since you're building yourself.
2) Preparation Build yourself or use prebuilt. A prebuilt for Solaris 8 is not obviously available, so
Build yourself: tar -xf boost-jam-3.1.10.tar cd boost-jam-3.1.10 sh ./build.sh gcc detected ok cd bin.solaris cp * /usr/local/bin
completed ok, now bjam, jam, mkjambase and yyacc are in PATH
Only bjam needs to be in PATH.
configure the tools many unix systems come preconfigured this way and require no user intervention.
3) Supported toolsets gcc g++ is in PATH might need to set -sGCC_STDLIB_DIRECTORY=/opt/csw/gcc3/lib
4) Build and install
tar xf boost_1_31_0.tar cd boost_1_31_0
The current directory should now have at least the following subdirectories: boost/ libs/ tools/
bjam "-sTOOLS=gcc" install
at this point the procedure fails and I get:
Unable to load Boost.Build: could not find build system. --------------------------------------------------------- /homes/chuck/src/boost_1_31_0/boost-build.jam attempted to load the build system by invoking
'boost-build tools/build/v1 ;'
but we were unable to find "bootstrap.jam" in the specified directory or in BOOST_BUILD_PATH (searching /homes/chuck/src/boost_1_31_0/tools/build/v1,/usr/share/boost-build).
So is there a ./tools/build/v1/bootstrap.jam from the current directory? If not, where does the path break?
Please consult the documentation at 'http://www.boost.org'.
Ok, so I go back and untar boost-build-2.0-m9.1.tar, cd into that where there IS a "bootstrap.jam" file and try bjam "-sTOOLS=gcc" install again, this time I get:
Now you're just flailing ;-). Don't mess with that archive. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
On Wed, 15 Sep 2004, David Abrahams wrote:
The current directory should now have at least the following subdirectories:
boost/ libs/ tools/
David Thank you for replying - tools/ was missing. appearently /usr/bin/tar could not handle the long filenames. I should have suspected the 'directory checksum error' when un-tarring. I installed gnu tar 1.14, that un-tarred the file A-OK and I now have tools/ and it is now building. (...patience...) Thanks again for your help. --Chuck PS - files were obtained from sourceforge, boost_1_31_0.tar.bz2 tar 'directory checksum error' reference: http://www.sourcekeg.co.uk/www.mysql.com/doc/mysql/en/Solaris.html
cswiger wrote:
Hello again - Here's details of what goes wrong while following the instructions to Build and Install boost on Solaris 8:
Hi Chuck, please do not start a new thread by answering to an unrelated message. This post of yours looked as a reply to my most about program_options. Thanks, Volodya
participants (4)
-
cswiger
-
David Abrahams
-
Gordon Smith
-
Vladimir Prus