我刚刚从微软网站安装了VS2010 Beta 1,我启动了一个基本的C++ Win32控制台应用程序,它生成了以下代码:
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我尝试编译代码只是为了看它是如何运行的,然后我遇到了几个(超过100个)编译错误.
这是构建输出的第一部分:
1>ClCompile:
1> stdafx.cpp
1>c:\program files\microsoft visual studio 10.0\vc\include\crtdefs.h(520): error C2065: '_In_opt_z_' : undeclared identifier
1>c:\program files\microsoft visual studio 10.0\vc\include\crtdefs.h(520): error C2143: syntax error : missing ')' before 'const'
1>c:\program files\microsoft visual studio 10.0\vc\include\crtdefs.h(520): warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files\microsoft visual studio 10.0\vc\include\crtdefs.h(520): error C2182: '_invalid_parameter' : illegal use of type 'void'
1>c:\program files\microsoft visual studio 10.0\vc\include\crtdefs.h(520): error …Run Code Online (Sandbox Code Playgroud) 可能重复:
通过PEAR安装PHPUnit
phpunit的安装说明正在运行:
pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit
Run Code Online (Sandbox Code Playgroud)
第一个没关系,第二个我得到一个错误:
phpunit/PHPUnit requires PEAR Installer (version >= 1.8.1), installed version is 1.7.2
phpunit/PHPUnit can optionally use package "pear/Image_GraphViz" (version >= 1.2.1)
phpunit/PHPUnit can optionally use package "pear/Log"
phpunit/PHPUnit can optionally use PHP extension "xdebug" (version >= 2.0.5)
No valid packages found
install failed
Run Code Online (Sandbox Code Playgroud)
我刚刚使用来自php.net(php 5.3.0)的最新go-pear.phar版本安装了梨,也尝试运行php go-pear.php梨网站说.
运行pear -V给我版本1.7.2,当我运行pear upgrade PEAR它说我的版本比当前noe 1.9.0更新,如果运行pear upgrade -f PEAR强制升级,它下载文件并成功安装但我仍然有1.7.2和版本无法安装phpunit.
我正在运行windows vista,php 5.3.0