會出現這個連結錯誤
錯誤 1 error LNK2005: "public: __thiscall std::allocator<unsigned short>::allocator<unsigned short>(void)" (??0?$allocator@G@std@@QAE@XZ) 已在 libosg-gd-x86.lib(State.obj) 中定義過了 msvcprtd.lib

解法:

https://svn.boost.org/trac/boost/attachment/ticket/1871/regex.patch

在會出現這個問題的地方加入這個宣告
template<> _CRTIMP2 std::allocator<unsigned short>::allocator(void);

arrow
arrow
    全站熱搜

    讓地獄深紅的天亮 發表在 痞客邦 留言(0) 人氣()