Opened 7 years ago

Closed 7 years ago

#4335 closed Bugs (fixed)

Unresolved external symbols for MSVC with link=shared

Reported by: matt.chambers42@… Owned by: Jonathan Turkanis
Milestone: Boost 1.44.0 Component: iostreams
Version: Boost Development Trunk Severity: Showstopper
Keywords: Cc:


Since the definitions for the methods of file_descriptor_source and file_descriptor_sink were moved to the CPP file, those classes now need to be declared with BOOST_IOSTREAMS_DECL like file_descriptor is. This is a trivial fix which is absolutely necessary for iostreams to work with link=shared.

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by matt.chambers42@…

The classes in question are in: boost/iostreams/device/file_descriptor.hpp

-class file_descriptor_source : private file_descriptor { +class BOOST_IOSTREAMS_DECL file_descriptor_source : private file_descriptor {

-class file_descriptor_sink : private file_descriptor { +class BOOST_IOSTREAMS_DECL file_descriptor_sink : private file_descriptor {

comment:2 Changed 7 years ago by Steven Watanabe

Resolution: fixed
Status: newclosed

(In [62811]) Add BOOST_IOSTREAMS_DECL to file_descriptor_source and file_descriptor_sink. Fixes #4335.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jonathan Turkanis.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.