-- 作者:lingjiexie
-- 发布时间:11/29/2007 6:05:00 PM
-- gsoap开发webservice问题,请赐教
本人最近在用gsoap开发webservice服务端程序,从网站上下载了gsoap_2.7.9l,安装后Make时报错,错误如下: bash-2.00$ make make all-recursive Making all in soapcpp2 make all-recursive Making all in src Target "all" is up to date. Making all in wsdl ../../soapcpp2/src/soapcpp2 -SC -pwsdl -I. ./wsdl.h ** The gSOAP Stub and Skeleton Compiler for C and C++ 2.7.9l ** Copyright (C) 2000-2007, Robert van Engelen, Genivia Inc. ** All Rights Reserved. This product is provided "as is", without any warranty. ** The gSOAP compiler is released under one of the following three licenses: ** GPL, the gSOAP public license, or the commercial license by Genivia Inc. Critical error: Cannot #import: soapcpp2 not compiled with flex make: The error code from the last command is 1. Stop. make: The error code from the last command is 1. Stop. make: The error code from the last command is 2. Stop. make: The error code from the last command is 1. Stop. make: The error code from the last command is 2. Stop. 我忽视这个错误我在编译例子程序时出现如下错误 bash-2.00$ make /new_product1/boss/interface/client_source/gsoap-2.7/soapcpp2/src/soapcpp2 -padd -i -n -c add.h ** The gSOAP Stub and Skeleton Compiler for C and C++ 2.7.9l ** Copyright (C) 2000-2007, Robert van Engelen, Genivia Inc. ** All Rights Reserved. This product is provided "as is", without any warranty. ** The gSOAP compiler is released under one of the following three licenses: ** GPL, the gSOAP public license, or the commercial license by Genivia Inc. Saving addStub.h Saving addH.h Saving addC.c Using ns service name: Service Using ns service style: document Using ns service encoding: literal Using ns service location: http://localhost:80 Using ns schema namespace: http://tempuri.org/ns.xsd Saving ns.wsdl Web Service description Saving ns.add.req.xml sample SOAP/XML request Saving ns.add.res.xml sample SOAP/XML response Saving ns.xsd XML schema Saving add.nsmap namespace mapping table Compilation successful xlC -g -DWITH_NONAMESPACES -c addserver.c -I /new_product1/boss/interface/client_source/gsoap-2.7/soapcpp2 xlC: 1501-245 Warning: Hard ulimit has been reduced to less than RLIM_INFINITY. There may not be enough space to complete the compilation. "addStub.h", line 59.1: 1506-278 (S) The structure definition must specify a member list. make: The error code from the last command is 1. addStub.h这个头文件为自动生成 59行为 struct SOAP_ENV__Header { #ifdef WITH_NOEMPTYSTRUCT char dummy; /* dummy member to enable compilation */ #endif }; #endif 应该是WITH_NOEMPTYSTRUCT这个宏没定义,请问哪位大侠碰到过这种情况。 不吝赐教,谢谢!
|