现在的位置: 首页 > 综合 > 正文

vs2008 error C2039: “shared_ptr”: 不是“std::tr1”的成员

2013年08月05日 ⁄ 综合 ⁄ 共 493字 ⁄ 字号 评论关闭

vs2008 error C2039: “shared_ptr”: 不是“std::tr1”的成员

转载:http://hi.baidu.com/wacpguo/item/b7870814ba417b008ebde4a3

vs2008创建的c++项目中用到了std::tr1::shared_ptr,

编译时报错:error C2039: “shared_ptr”: 不是“std::tr1”的成员。

原因:未安装vs2008 SP1

VS90sp1-KB945140-CHS.exe:

http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=FBEE1648-7106-44A7-9649-6D9F6D58056E

VS2008SP1CHSX1512981.iso:

http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=27673C47-B3B5-4C67-BD99-84E525B5CE61

若 不安装vs2008 SP1,也可使用Boost的实现boost::shared

抱歉!评论已关闭.