Gsoap 2.7.17:
Http://sourceforge.net/projects/gsoap2
Compile soapcpp2:
After decompression, the directory gsoap-2.7/gsoap/visualstudio2005 is under the Windows project, open the project will error:
The following error occurs during XML analysis:
File: X:/XXX/gsoap_2.7.17/gsoap-2.7/gsoap/visualstudio2005/soapcpp2/soapcpp2/soapcpp2.vcproj
Row: 18
Column: 4
Error message:
The custom generation rule file "E:/msdn/sample/VC ++/vccustombr/flexbison. Rules" is not found or cannot be loaded.
File "X:/XXX/gsoap_2.7.17/gsoap-2.7/gsoap/visualstudio2005/soapcpp2/soapcpp2/soapcpp2.vcproj" cannot be loaded.
Solution:
Download the following file
Http://download.microsoft.com/download/3/f/9/3f9f31b7-61a4-4dd6-9170-36d5b1d9356c/vccustombr.exe
Install and copy the flexbison. Rules file to the X:/XXX/gsoap_2.7.17gsoap-2.7/gsoap/visualstudio2005/soapcpp2/directory
.
Open X:/XXX/gsoap_2.7.17/gsoap-2.7/gsoap/visualstudio2005/soapcpp2/soapcpp2/soapcpp2.vcproj with notepad
Put
"Relativepath =".../../msdn/sample/VC ++/vccustombr/flexbison. Rules"
Replace
"Relativepath ="./flexbison. Rules"
Now open the soapcpp2.vcproj file.
F7, error again, speechless:
Lex. yy. C (746): Fatal error c1083: Unable to open include file: "unistd. h": no such file or directory
In Windows, the vs series ide does not contain this file. You can use the following code to cheat yourself:
# Ifndef _ unistd_h __
# DEFINE _ unistd_h __
# Pragma once
# Include <Io. h>
# Include <process. h>
# Endif //! Define (_ unistd_h __)
Save the above Code as an unistd. h file, and then drop the file
X:/program files/Microsoft Visual Studio 8/VC/include
Directory to recompile the project.
Compile wsdl2h:
Open the project directly and you will be able to compile it. This is no problem.