C++编译错误 error C2143 error C2146
来源:互联网 发布:美发软件那个好 编辑:程序博客网 时间:2024/06/09 14:58
OS:win xp sp3 32位 vs2008
今天在做physx和ogre的结合时遇到一个错误,error C2143 error C2146。很简单的声明一个变量的语句,看不出任何语法错误。根据msdn上的帮助没有提供类似的错误案例。msdn 上提供的常见原因和解决方案我就不列出来了,下面就列出我所遇到的错误原因:
ex:PxPhysics *mPhysxSDK; //error C2143
最后的原因是没有解析命名空间:
改为:physx::PxPhysics *mPhysxSDK;
OK,没有问题了,没想到命名空间居然会引出error C2143 error C2146的错误。
希望这个对您有用,下次遇到error C2143 error C2146不能解决不妨考虑是否是命名空间解析的错误了。:-D
- C++编译错误 error C2143 error C2146
- 编译时发生错误:error C2146
- error C2146 和C4430 错误
- error C2146:和error C4430:的错误
- error C2146:和error C4430:的错误
- error C2143
- VS2005编译问题:出现错误error C2146: syntax error : missing ';' before identifier 'SQLHWND'
- directX编译连接错误 error C2146: syntax error : missing ';' before identifier 'PVOID64'
- VC++ 2005中编译C出错:error C2143: syntax error : missing ';' before 'type'
- VC++ 2005中编译C出错:error C2143: syntax error : missing ';' before 'type'
- VC++中编译C出错:error C2143: syntax error : missing ';' before 'type'
- VC++中编译C出错:error C2143: syntax error : missing ';' before 'type'
- VC++中编译C出错:error C2143: syntax error : missing ';' before 'type'
- VC++中编译C出错:error C2143: syntax error : missing ';' before 'type'
- VS2008 编译出错 error C2143解决方法
- C++ MySQL编译错误 error C2146: 语法错误 : 缺少“;”(在标识符“fd”的前面) 解决方法
- VS中的编译错误 error C2146: ipexport.h(69): winnt.h(301):
- error C2143: 语法错误 : 缺少“{”(在“:”的前面)编译错误的解决
- 并查集
- java获取区间随机数
- 我的OpenCV学习笔记(15):利用反向投影直方图查找特定的内容
- 通过Flash上传文件提示出错:onHTTPError
- Mock RequestContextListener
- C++编译错误 error C2143 error C2146
- UINavigationController
- 如何编译并打开WinCE Bluetooth Stack的LOG
- OpenR2 呼叫流程
- APC&INV different about items
- 网络端口大全
- eclipse遇到An error has occurred. See the log file
- 子线程阻塞的一个解决方案
- java中long,int,short与byte数组之间的转换