【问题标题】:class 'boost ::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'boost::signals::connection'类 'boost ::shared_ptr<T>' 需要有 dll 接口供类 'boost::signals::connection' 的客户端使用
【发布时间】:2012-07-31 06:42:35
【问题描述】:

我在编译代码时收到以下错误。

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'

代码中的信号定义为

boost::signal<void (long long int)> totalTimeChanged;
boost::signal<void (unsigned int)> curTimeChanged;

连接完成为

GStreamer::totalTimeChanged.connect(boost::bind(&MainWindow\
            ::total_time_changed, &player, _1));

编译成功,但是如何摆脱这些编译器警告?

【问题讨论】:

    标签: visual-c++ warnings boost-signals


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2012-06-26
    • 1970-01-01
    • 1970-01-01
    • 2016-12-29
    • 2016-06-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多