电脑上本来装了vs2008
现在装了vs2010,奇怪:
1. vs2008里面使用的opencv的lib 和其他第三方库的lib的路径已经自动加到vs2010 的路径里面了
2.这个问题也很奇怪:
//#include <iostream>
//using namespace std;
void main()
{
//cout<<"csdn is excellent";
}
这样程序可以再vs2010里运行。
如果是
#include <iostream>
using namespace std;
void main()
{
cout<<"csdn is excellent";
}
就出现错误:1> main.cpp
1>c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(1083): error C2061: syntax error : identifier 'T'
1>c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(1084): fatal error C1903: unable to recover from previous error(s); stopping compilation
不解啊?