Luís Vaz - 2012-01-13

Hi,

I'm trying to compile the csoap libsoap in MingW under WinXP, and after run configure, when running the makefile it throws an error that I can't resolve/understand:

make  all-recursive
make: Entering directory `/c/libsoap-1.1.0'
Making all in nanohttp
make: Entering directory `/c/libsoap-1.1.0/nanohttp'
if /bin/sh ../libtool -tag=CC -mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
  -I.. -g -O2 -I/usr/local/include/libxml2 -MT libnanohttp_la-nanohttp-common.lo
-MD -MP -MF ".deps/libnanohttp_la-nanohttp-common.Tpo" -c -o libnanohttp_la-nan
ohttp-common.lo `test -f 'nanohttp-common.c' || echo './'`nanohttp-common.c; \
        then mv -f ".deps/libnanohttp_la-nanohttp-common.Tpo" ".deps/libnanohttp
_la-nanohttp-common.Plo"; else rm -f ".deps/libnanohttp_la-nanohttp-common.Tpo";
exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -I/usr/local/include/libxml2 -MT l
ibnanohttp_la-nanohttp-common.lo -MD -MP -MF .deps/libnanohttp_la-nanohttp-commo
n.Tpo -c nanohttp-common.c  -DDLL_EXPORT -DPIC -o .libs/libnanohttp_la-nanohttp-
common.o
In file included from nanohttp-common.c:56:0:
nanohttp-common.h:284:12: error: expected identifier or '(' before 'struct'
nanohttp-common.h:284:12: error: expected ')' before '=' token
nanohttp-common.c:718:1: error: expected identifier or '(' before 'struct'
nanohttp-common.c:718:1: error: expected ')' before '=' token
make: ***  Error 1
make: Leaving directory `/c/libsoap-1.1.0/nanohttp'
make: ***  Error 1
make: Leaving directory `/c/libsoap-1.1.0'
make: ***  Error 2

Can anyone help me with this?

Thanks in advance,
Vaz