Hi,
I've solved the problem modifying the line 109-116 of file boost/test/detail/config.hpp in this  way:

#  ifdef BOOST_TEST_SOURCE
#    define BOOST_TEST_DECL BOOST_SYMBOL_EXPORT // BOOST_SYMBOL_VISIBLE
#  else
#    define BOOST_TEST_DECL BOOST_SYMBOL_IMPORT // BOOST_SYMBOL_VISIBLE
#  endif  // BOOST_TEST_SOURCE
#else
#  define BOOST_TEST_DECL // BOOST_SYMBOL_VISIBLE
#endif

Let me know if you have any questions or comments

Thanks,
   Mirko




On Wed, Dec 11, 2019 at 10:15 AM mik <mirko.cambi@gmail.com> wrote:
Hello,
some other informations. The row below is the complete line command that generates the error:

"/opt/solarisstudio12.3/bin/CC" -library=stlport4 -xcode=pic32  -g -mt -erroff=%none -xldscope=hidden -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_TEST_DYN_LINK=1 -I"." -c -o "bin.v2/libs/test/build/sun/debug/address-model-64/threading-multi/visibility-hidden/execution_monitor.o" "libs/test/src/execution_monitor.cpp"

If I remove the macro definition -DBOOST_TEST_DYN_LINK=1 the error disappears.

Thanks,
    Mirko




On Wed, Dec 11, 2019 at 2:41 AM mik <mirko.cambi@gmail.com> wrote:
Hi,
I'm triying to compile the boost 1.70 on Sun solaris using the version 12.3, but I got an annoying error on the test library:

"./boost/test/unit_test_log_formatter.hpp", line 39: Error: Identifier expected instead of "__global".

For what I can understand it seems that compiler doesn't recognize the keyword __global.

Below, there's the command line that I've used:

./b2 toolset=sun variant=debug address-model=64 threading=multi link=shared runtime-link=shared --with-test

Do you have any suggestions?

Thanks,
    Mirko