0
를 컴파일 내가 구성하고 다음 명령을 사용하여 설치 gsoap 2.8.14 다운로드. 그래서 샘플에서 WSDL 파일을 가져다가 한 다음과 같은 : 내가는 gsoap 샘플 안녕하세요 서비스
같은 오류를 수신했기 때문에wsdl2h -s -o hello.h h.wsdl
soapcpp2 hello.h
내가 새로운 일식 C++ 프로젝트에 생성 된 파일을 복사 soapClientLib.cpp 및 soapServerLib.cpp 제외
#include "soapH.h"
#include "Service.nsmap"
int main()
{
return soap_serve(soap_new);
}
int __ns1__hello(struct soap *soap, char* helloReq, char* &helloResponse)
{
return SOAP_OK;
}
이클립스 구축 난 에러 수신 :
multiple definition of .....
그때 여기 helloserver.cpp을 만든 콘텐츠 인
soap->error=__ns1_hello(soap,soap_tmp___ns1_hello.ns2__hello,&ns2__helloResponse);
왜 내가이 오류를 얻고있다 : 내가 soapServer.cpp에 추적 할 때
...soapServer.cpp:77 undefined reference to __ns1__hello(soap*,_ns2_hello*, _ns__helloResponse*)
,이 줄은 오류가있다? 당신이 함수
int __ns1__hello(struct soap *soap,
_ns2_hello* helloReq,
_ns__helloResponse* helloResponse)
{
return SOAP_OK;
}
하지 당신이 쓴 함수를 작성하기로되어있는 오류 메시지 (과 soapServer.cpp 코드)에서 볼 수 있듯이 메신저
오, 그렇습니다. 존. 내 실수를 깨달았습니다. char * 데이터 유형이 아니어야합니다. 텍사스 – nuttynibbles