费了好大的劲终于配置好了.pro文件,内容如下
# ! [0]
INCLUDEPATH += ../import
LIBS += D:/MinGW/lib/libws2_32.a
TEMPLATE = lib
CONFIG += test-service
HEADERS = TestService.h \
ImplAlmsService.h \
webservice/test/soapH.h \
webservice/test/soapStub.h \
webservice/test/soapTestSoapBindingProxy.h
SOURCES = TestService.cpp \
ImplAlmsService.cpp \
webservice/test/soapC.cpp \
webservice/test/soapTestSoapBindingProxy.cpp \
../import/stdsoap2.cpp
TARGET = test-service
DESTDIR = ../lib
OTHER_FILES += webservice/test/TestSoapBinding.nsmap
主要是参考了http://stackoverflow.com/questions/2795760/using-gsoap-in-qt-windows提到的add LIBS += C:\MinGW\lib\libws2_32.a to your *.pro file. libws32_a is the current version of the deprecated libwsock32.a file.
# ! [0]
INCLUDEPATH += ../import
LIBS += D:/MinGW/lib/libws2_32.a
TEMPLATE = lib
CONFIG += test-service
HEADERS = TestService.h \
ImplAlmsService.h \
webservice/test/soapH.h \
webservice/test/soapStub.h \
webservice/test/soapTestSoapBindingProxy.h
SOURCES = TestService.cpp \
ImplAlmsService.cpp \
webservice/test/soapC.cpp \
webservice/test/soapTestSoapBindingProxy.cpp \
../import/stdsoap2.cpp
TARGET = test-service
DESTDIR = ../lib
OTHER_FILES += webservice/test/TestSoapBinding.nsmap
主要是参考了http://stackoverflow.com/questions/2795760/using-gsoap-in-qt-windows提到的add LIBS += C:\MinGW\lib\libws2_32.a to your *.pro file. libws32_a is the current version of the deprecated libwsock32.a file.