title: Compiling a simple Gsoap Service
body: <p>I'm very new to gsoap and am attempting to follow this example.</p>
  
  <p><a href="http://www.genivia.com/products/gsoap/demos/calc.html" rel="nofollow">Gsoap Example</a></p>
  
  <p>I successfully installed Gsoap by downloading the binaries and using the following commands:</p>
  
  <p>./configure --disable-ssl, make, sudo make install</p>
  
  <p>I then created my .h file as shown in the example and compiled it using soapcpp2.
  I created a .cpp file as the example shows and attempted to compile.</p>
  
  <p><strong>When compiling, I am receiving compile errors in my automatically generated soapC.cpp class as well as my auto generated soapServer.cpp class.  There are multiple errors and they are all approximately the same.</strong></p>
  
  <blockquote>
    <p>soapServer.cpp: undefined reference to 'ns_sub(soap*, double, double
    ,double*)'</p>
  </blockquote>
  
  <p>I'm sure that this is a linker error.  I am linking to the gsoap++ library that was created during the make process.  Does anybody have any ideas?  Thanks!</p>
  
  <p>Ps.  Here is the command that is being issued by eclipse:  </p>
  
  <blockquote>
    <p>g++ -o "GsoapTest" ./src/GsoapTest.o ./src/soapC.0 ./src/soapServer.o
    ./src/soapServerLib.o  -lgsoap++</p>
  </blockquote>