S.l.e!ep.¢%

像打了激速一样,以四倍的速度运转,开心的工作
简单、开放、平等的公司文化;尊重个性、自由与个人价值;
posts - 1098, comments - 335, trackbacks - 0, articles - 1
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

about C2632: 'int' followed by 'int' is illegal

Posted on 2010-09-03 15:12 S.l.e!ep.¢% 阅读(1706) 评论(0)  编辑 收藏 引用 所属分类: C++
1、你把#include<windows.h>这句放到头文件包含的最前面试试。
2、google到的信息
That line creates a typedef
named BOOL that is an int. There must be a #define somewhere
earlier in your compile for BOOL that defines it as int.

When you compile as a mex file, you are including windows.h
which does include windef.h.

As to where BOOL is #define'd, I don't know. If you put
#undef BOOL
just before including windows.h, you should get rid of this
particular compile error.


comes from:http://www.mathkb.com/Uwe/Forum.aspx/matlab/12126/Help-in-writing-xPC-Target-I-O-driver

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理