Link to home
Start Free TrialLog in
Avatar of TKD
TKD

asked on

Disable wchar type in gSOAP

Hi,
I use cross-compiler mipsel-uclibc-gcc to compile gSOAP source code. But the mipsel-uclibc-gcc doesn't support wide character complete, I get an error message about wide character by compiling with cross-compiler mipsel-uclibc-gcc. See this discuss [https://www.experts-exchange.com/questions/23575719/mipsel-uclibc-gcc-compiles-gSOAP-project-without-finding-MB-CUR-MAX.html?cid=239&anchorAnswerId=22033657#a22033657]
So I would like to disable wchar type in gSOAP source code. What should I do?
Thank you.
Avatar of Infinity08
Infinity08
Flag of Belgium image

I didn't find any obvious way of doing it with gSoap. It might be best to contact the authors of gSoap - they would know :)

        http://sourceforge.net/projects/gsoap2/

If nothing turns up, you might have to resort to what evilrix suggested here :

        https://www.experts-exchange.com/questions/23568940/mipsel-uclibc-gcc-compiles-gSOAP-project.html
ASKER CERTIFIED SOLUTION
Avatar of TKD
TKD

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please post the answer as a separate post here, and select that as the post to be accepted. That way, people who look at this question in the future will be able to see the answer too :)
Avatar of TKD
TKD

ASKER

I write the question to the author Robert of gSOAP.
He answer my problem:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
It might be best to contact the authors of gSoap - they would know :)
I suggest to undefine these in stdsoap2.h:

#undef HAVE_WCTOMB
#undef HAVE_MBTOWC

(or remove the #defines in stdsoap2.h and config.h)

When they're not set, it should compile.

- Robert
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-