Hi Claudia, > gsoap (2.7.17, downloaded from Sourceforge) doesn't compile all samples. It > hangs with: > make[6]: Entering directory `/usr/src/gsoap-2.7/gsoap/samples/factorytest' > g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../gsoap -I../../../gsoap/plugin > -DLINUX -g -O2 -MT factorytest.o -MD -MP -MF .deps/factorytest.Tpo -c -o > factorytest.o factorytest.cpp > factorytest.cpp:52:22: error: iostream.h: Datei oder Verzeichnis nicht
I'm not quite sure, but shouldn't it be iostream, not iostream.h? Maybe, it helps altering that row in the source code (one of the includes). > gefunden > factorytest.cpp: In function ‘int main(int, char**)’: > factorytest.cpp:170: error: ‘cout’ was not declared in this scope > factorytest.cpp:170: error: ‘endl’ was not declared in this scope > I suppose cout and endl have to be declared. But I don't know how to do > this in C++. Try adding the row using namespace std; below the include-statements. > Next I wanted to follow the example in > 1.2 Quick Start: Developing a Web Service Client Application > and tried to compile calcclient with C. > > clau...@compac-deb:~/soap$ cc -o calcclient.c soapC.c soapClient.c -lgsoap > /usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o: In function > `_start': > (.text+0x18): undefined reference to `main' > /usr/local/lib/libgsoap.a(libgsoap_a-stdsoap2.o): In function `soap_init': > /usr/src/gsoap-2.7/gsoap/stdsoap2.c:8053: undefined reference to > `namespaces' collect2: ld returned 1 exit status On a first glance, I'd guess it's the syntax of invoking cc. The option -o defines the name of the output file. Try sth. like cc -o MyCalcClient calcclient.c soapC.c soapClient.c -lgsoap instead. Regards, Sebastian
signature.asc
Description: This is a digitally signed message part.