Posted on 2010-09-03 15:12 
S.l.e!ep.¢% 阅读(1759) 
评论(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