Getting started with gsoap _ Two magic weapons: Download and compile gsoap

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.