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

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

你可能感兴趣的:(about C2632: 'int' followed by 'int' is illegal)