Reputation: 13143
I get the following error on compiling the code.
c:\boost_1_48_0\boost\signals\connection.hpp(118) : warning C4251: 'boost::signals::connection::con' : class 'boost
::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'boost::signals::connection'
The signals in the code are defined as
boost::signal<void (long long int)> totalTimeChanged;
boost::signal<void (unsigned int)> curTimeChanged;
connection is done as
GStreamer::totalTimeChanged.connect(boost::bind(&MainWindow\
::total_time_changed, &player, _1));
The compilation is successful but how do I get rid of these compiler warnings ?
Upvotes: 2
Views: 3575
Reputation:
You might want to read How can I use Standard Library (STL) classes in my dll interface or ABI? The mentioned 'UnknownRoad' posting is at http://www.unknownroad.com/rtfm/VisualStudio/warningC4251.html
HTH
Upvotes: 3