首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

如何设置或者查询头文件所用的编译器或预编译

2013-11-14 
怎么设置或者查询头文件所用的编译器或预编译?VC2008中win32控制台项目添加了gSoap生成的头文件soapStub.h

怎么设置或者查询头文件所用的编译器或预编译?
VC2008中
win32控制台项目

添加了gSoap生成的头文件soapStub.h
提示错误

错误2error C2016: C 要求一个结构或联合至少有一个成员
struct wsa__EndpointReferenceType
{
public:
char *Address;/* required element of type xsd:string */
struct wsa__ReferencePropertiesType *ReferenceProperties;/* optional element of type wsa:ReferencePropertiesType */
struct wsa__ReferenceParametersType *ReferenceParameters;/* optional element of type wsa:ReferenceParametersType */
char **PortType;/* optional element of type xsd:QName */
struct wsa__ServiceNameType *ServiceName;/* optional element of type wsa:ServiceNameType */
int __size;/* sequence of elements <-any> */
char **__any;
char *__anyAttribute;/* optional attribute of type xsd:anyType */
public:
int soap_type() const { return 7; } /* = unique id SOAP_TYPE_wsa__EndpointReferenceType */
};
猜测可能是因为C中不支持结构体函数。

求指教
[解决办法]
被编译的永远是.c, .cpp, .cxx文件,.h,.hxx, .hpp都是被include的。
[解决办法]
C里面结构体是不能写函数的
[解决办法]
设置好include目录 直接包含头文件即可

热点排行