Opened 9 years ago
Closed 8 years ago
#9595 closed Bugs (fixed)
config/user.hpp incorrectly claims that Boost.Test must be staticly linked
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | config |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
http://www.boost.org/doc/libs/1_55_0/boost/config/user.hpp has a comment for BOOST_ALL_DYN_LINK and BOOST_WHATEVER_DYN_LINK that claims that Boost.Test must be staticly linked, but this is not true.
Change History (4)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
If you look at my documentation rewrite for Boost.Test you'll see that you can compile the library in static or dynamic forms and both forms can have a main defined by the library or not.
I have tested these on Windows and I didn't run into any problem with main being in the DLL, but perhaps I need to investigate that more closely.
At any rate, you can most definitely compile Boost.Test for dynamic linking. This has been true for some time.
comment:3 by , 9 years ago
For dynamic linking, Boost.Test defines main in a header (when BOOST_TEST_MODULE or BOOST_TEST_MAIN is defined, which is required to be in exactly one translation unit.).
comment:4 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Updated in Git develop, see: https://github.com/boostorg/config/commit/0b75ce040552967dc9070c4e3bbe49321b624ba9
Actually I believe it is still true: Boost.Test contains it's own version of main, and that can not reside in a Windows DLL, unlike on say Linux where it can be placed in an shared object.
What am I missing?