basetsd.h中的C2143问题 [英] C2143 problem in basetsd.h

查看:92
本文介绍了basetsd.h中的C2143问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试在Visual Studio 2003 .net中编译一个项目.我必须包含其他人编写的几个.cpp和.h文件,为此,我必须在项目设置中包括标头和.lib的目录.

现在我得到了错误:

C2143:语法错误:在``,''之前缺少``;''.

此错误将我指向文件basetds.h和以下行:
typedef签名的int INT32,* PINT32;


我确实在互联网上做了大量的工作,只是找不到解决我问题的方法.

Hi,
I am trying to compile a project in visual studio 2003 .net. I have to inclue a couple of .cpp and .h files that someone else has written and for these I have to include a directory for the headers and the .lib in the project settings.

I now get the error:

C2143: syntax error: missing '';'' before '',''.

This error points me to the file basetds.h and the line:
typedef signed int INT32, *PINT32;


I really have done loads of hunting around on the internet and just can''t find a solution to my problem.

推荐答案

该语句有效,以下程序
The statement is valid, the following program
#include <iostream> 
typedef signed int INT32, *PINT32;
 
 int main()
 {
   INT32 i32 = 5;
   PINT32 pi32 = &i32;
   std::cout << i32 << ", " << pi32 << ", "  << *pi32 << std::endl;
   return 0;
 } 



在我的系统(我有VS 2005)上正常编译(运行).



compiles (and runs) fine on my system (I have VS 2005).


这篇关于basetsd.h中的C2143问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆