Opened 12 years ago

Closed 12 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:

Description

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.

Change History (2)

comment:1 by matt.chambers42@…, 12 years ago

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 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.