2
編譯代碼時出現以下錯誤。作爲class'boost :: shared_ptr <T>'需要具有類'boost :: signals :: connection'的客戶端使用的dll接口
boost::signal<void (long long int)> totalTimeChanged;
boost::signal<void (unsigned int)> curTimeChanged;
連接作爲
GStreamer::totalTimeChanged.connect(boost::bind(&MainWindow\
::total_time_changed, &player, _1));
編譯成功,但我怎麼擺脫這些編譯器警告的做
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'
代碼的信號定義?