Opened 20 years ago
Closed 18 years ago
#52 closed defect (fixed)
Proper dynamic linking on Windows
| Reported by: | ghost | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | C++ Boost maintenance |
| Component: | component1 | Version: | |
| Keywords: | Cc: |
Description (last modified by )
Need decide how BOOST_ALL_DYN_LINK or BOOST_ALL_SOMELIB_LINK should be set when linking to a library using V2.
Issues:
- If we're using V2 to link to a library, we don't need auto-linking, that's just extra work for the linker as we're linking to the library on the command line.
- Without BOOST_ALL_DYN_LINK, Boost library headers won't contain necessary declexport declaration, so linking to DLL won't work.
- It's easy to forget BOOST_ALL_DYN_LINK in client code.
I think the right solution would be for every library to have two extra elements in usage requirements:
- <link>shared:<define>BOOST_SOMELIB_PLEASE_USE_DECLSPEC_IN_HEADERS
- <link>shared:<define>BOOST_SUPPRESSAUTOLINK
Change History (3)
comment:1 by , 20 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 20 years ago
| Milestone: | C++ Boost switch (regression runners) → C++ Boost switch (users) |
|---|
comment:3 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

No problems, in practice.