Does anyone know if and/or how you can define macro definitions in a gSoap header file?
In C++ I can do:
#define maxRecords 100
Can I do anything similar in gSoap?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re not supposed to ever modify header files from packages (unless you’ve copied them locally and know what you’re doing). You can add that define to your main
.cppfile before you include anything else and it’ll have the same effect. Better yet, create your ownglobal.h, put your#definein there, and include it anywhere you include gSoap.You can even make it a gSoap wrapper by putting the gSoap
#includewithin yourglobal.hand just#include global.hinstead of#include <whatevergsoapiscalled.h>