chenglin / weibo-sdk

Automatically exported from code.google.com/p/weibo-sdk
0 stars 0 forks source link

vs2010编译项目出错 #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
我直接用vs2010打开vs2008项目转换失败,我在vs2010新建项目,��
�加项目文件,编译时出现:错误
1   error C2668: “weibo::make_shared”: 
对重载函数的调用不明确   e:\svn check 
out\weibo\test\weibounittesthelper.cpp  316 1   weibotest

错误  9   error C2679: 二进制“=”: 
没有找到接受“std::tr1::shared_ptr<_Ty>”类型的右操作数的运算�
��(或没有可接受的转换) e:\svn check 
out\weibo\test\weibounittesthelper.cpp  422 1   weibotest

问题怎么解决?

Original issue reported on code.google.com by benben2...@gmail.com on 9 May 2012 at 8:15

GoogleCodeExporter commented 9 years ago
我直接用vs2010转换也失败。不知是什么原因。希望有转换成��
�的人传授点经验。

Original comment by wqvb...@gmail.com on 23 Nov 2012 at 6:47

GoogleCodeExporter commented 9 years ago
这都啥玩意儿,简直无力吐槽了。
用写字板打开工程(*.vcproj),把"删除即可转为vs2010
转过来也编译不过,因为libjson_VC90.lib是个静态库,因为stl的�
��层变了,vs2008和vs2010之间无法共用该静态库。你以为是libjso
n,google到http://sourceforge.net/projects/libjson/你错了,并不是这个
。而是基于 
https://launchpad.net/cppunit2,猜想是其中一个子集罢。并且没有do
wnload;不熟悉Bazaar不是那么容易的。

Original comment by yu.jiang...@gmail.com on 11 Feb 2013 at 4:22

GoogleCodeExporter commented 9 years ago
好吧,送佛送到西,http://wiki.bazaar.canonical.com/WindowsDownloads 
这里下载2.5.1 stable,安装之后用命令 bzr branch 
http://bazaar.launchpad.net/~cppunit2/cppunit2/essence 可以获得cppunit2

Original comment by yu.jiang...@gmail.com on 11 Feb 2013 at 4:43

GoogleCodeExporter commented 9 years ago
做完上面的步骤,你一定以为这样可以编译通过了吗,其实��
�然,请看value.h:
        /* begin ---------- insert by 吕晨光 2011/7/10 ---------  */
        int64Value,    ///< integer 64 value
        uint64Value,   ///< unsigned integer 64 value;
        /* end ---------- insert by 吕晨光 2011/7/10 ---------  */
内部代码,I 服了 U 
新浪,所以结论来了,不要试图编译vs2010了
下个dll,直接用lib来做好了,无非是无法F5调试。

Original comment by yu.jiang...@gmail.com on 11 Feb 2013 at 5:08

Attachments: