Skip to content

Failed running examples from installation section of wiki #173

Discussion options

You must be logged in to vote

*Fix:

using gcc : : g++ : <cxxflags>"-std=c++20" <linkflags>"-lboost_unit_test_framework" ;

To know more about the flags, go and read the Boost.Build documentation, which can be found here.

If you don't want to use the configuration file, you can command-line arguments to run the test.

PATH_TO_THE_B2_BINARY/b2 toolset=gcc cxxstd=20 variant=release optimization=speed PATH_TO_THE_TEST_OR_EXAMPLES_FOLDER

PATH_TO_THE_B2_BINARY/b2 toolset=gcc cxxstd=20 PATH_TO_THE_TEST_OR_EXAMPLES_FOLDER

PATH_TO_THE_B2_BINARY/b2 toolset=gcc cxxstd=20 variant=release PATH_TO_THE_TEST_OR_EXAMPLES_FOLDER

If you get the link issue from the boost unit test, use the linking flag.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Neel-Shah-29
Comment options

@Neel-Shah-29
Comment options

Answer selected by shikharvashistha
Comment options

You must be logged in to vote
1 reply
@Neel-Shah-29
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants