axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From IAP <to...@horus.com.pl>
Subject BUILDING ON WINDOWS
Date Sun, 06 May 2007 14:28:45 GMT

I have a problem building my small ws client on windows xp.

I've generated a stub using wsdl2ws tool. I want to compile and build it
using ant:

Here is the build.xml file:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns:cpptasks="antlib:org.sf.net.antcontrib.cpptasks"
name="CCTEST" default="main" basedir=".">    
	<property name="include.dir" location="C:\cygnus\cygwin-b20\include\g++" />
	<property name="libs1.dir"
location="C:\cygnus\cygwin-b20\H-i586-cygwin32\lib" />
  <property name="libs2.dir" location="C:\Documents and
Settings\IAP\Pulpit\AXIS CPP\lib\axis"/>
  <property name="libs3.dir" location="C:\Documents and
Settings\IAP\Pulpit\AXIS CPP\bin"/>
  <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
	<taskdef resource="cpptasks.tasks"/>
	<typedef resource="cpptasks.types"/>
	<target name="main">
		<cc outtype="executable" name="g++" outfile="testout" objdir=".">
			<fileset dir="./source"/>
      <libset dir="${libs1.dir}" libs="stdc++"/>
      <libset dir="${libs2.dir}" libs="axis_client"/>
      <libset dir="${libs2.dir}" libs="axis_server"/>
      <libset dir="${libs3.dir}" libs="axis_server"/>
      <libset dir="${libs3.dir}" libs="axis_server"/>

      <includepath path="${include.dir}"/>	
		</cc>
     	</target>
</project>


and here is the ant output:
main:
       [cc] Starting dependency analysis for 2 files.
       [cc] 2 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 0 total files to be compiled.
       [cc] Starting link
       [cc] FSWS.o(.text+0x30):FSWS.cc: undefined reference to
`axiscpp::Stub::Stub(char const *, axiscpp::AXIS_PROTOCOL_TYPE)'
       [cc] FSWS.o(.text+0xcc):FSWS.cc: undefined reference to
`axiscpp::Stub::~Stub(void)'
       [cc] FSWS.o(.text+0x147):FSWS.cc: undefined reference to
`axiscpp::Stub::Stub(char const *, axiscpp::AXIS_PROTOCOL_TYPE)'
       [cc] FSWS.o(.text+0x19b):FSWS.cc: undefined reference to
`axiscpp::Call::setEndpointURI(char const *)'
       [cc] FSWS.o(.text+0x1fc):FSWS.cc: undefined reference to
`axiscpp::Stub::~Stub(void)'
       [cc] FSWS.o(.text+0x240):FSWS.cc: undefined reference to
`axiscpp::Stub::~Stub(void)'
       [cc] FSWS.o(.text+0x30e):FSWS.cc: undefined reference to
`axiscpp::Call::initialize(axiscpp::PROVIDERTYPE)'
       [cc] FSWS.o(.text+0x346):FSWS.cc: undefined reference to
`axiscpp::Call::getTransportProperty(char const *, bool)'
       [cc] FSWS.o(.text+0x361):FSWS.cc: undefined reference to
`axiscpp::Call::setTransportProperty(axiscpp::AXIS_TRANSPORT_INFORMATION_TYPE,
char const *)'
       [cc] FSWS.o(.text+0x371):FSWS.cc: undefined reference to
`axiscpp::Call::setSOAPVersion(axiscpp::SOAP_VERSIONTag)'
       [cc] FSWS.o(.text+0x389):FSWS.cc: undefined reference to
`axiscpp::Call::setOperation(char const *, char const *)'
       [cc] FSWS.o(.text+0x395):FSWS.cc: undefined reference to
`axiscpp::Stub::applyUserPreferences(void)'
       [cc] FSWS.o(.text+0x3ae):FSWS.cc: undefined reference to
`axiscpp::Call::addParameter(void *, char const *, axiscpp::XSDTYPETag)'
       [cc] FSWS.o(.text+0x3bc):FSWS.cc: undefined reference to
`axiscpp::Call::invoke(void)'
       [cc] FSWS.o(.text+0x3de):FSWS.cc: undefined reference to
`axiscpp::Call::checkMessage(char const *, char const *)'
       [cc] FSWS.o(.text+0x3f9):FSWS.cc: undefined reference to
`axiscpp::Call::getElementAsString(char const *, char const *)'
       [cc] FSWS.o(.text+0x44e):FSWS.cc: undefined reference to
`axiscpp::Axis::AxisDelete(void *, axiscpp::XSDTYPETag)'
       [cc] FSWS.o(.text+0x45c):FSWS.cc: undefined reference to
`axiscpp::Call::unInitialize(void)'
       [cc] FSWS.o(.text+0x568):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::SoapFaultException(axiscpp::AxisException &)'
       [cc] FSWS.o(.text+0x587):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::~SoapFaultException(void)'
       [cc] FSWS.o(.text+0x5f7):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::SoapFaultException(axiscpp::SoapFaultException
const &)'
       [cc] FSWS.o(.text+0x628):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::~SoapFaultException(void)'
       [cc] FSWS.o(.text+0x630):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::~SoapFaultException(void)'
       [cc] FSWS.o(.text+0x675):FSWS.cc: undefined reference to
`axiscpp::Call::checkFault(char const *, char const *)'
       [cc] FSWS.o(.text+0x696):FSWS.cc: undefined reference to
`axiscpp::Call::unInitialize(void)'
       [cc] FSWS.o(.text+0x6a6):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::SoapFaultException(axiscpp::AxisException &)'
       [cc] FSWS.o(.text+0x6cb):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::~SoapFaultException(void)'
       [cc] FSWS.o(.text+0x744):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::SoapFaultException(axiscpp::SoapFaultException
const &)'
       [cc] FSWS.o(.text+0x775):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::~SoapFaultException(void)'
       [cc] FSWS.o(.text+0x77d):FSWS.cc: undefined reference to
`axiscpp::SoapFaultException::~SoapFaultException(void)'
       [cc] collect2: ld returned 1 exit status

seams like ant doesn't make the libs available to g++ linker.

Any help highly appreciated.

Tomek
-- 
View this message in context: http://www.nabble.com/BUILDING-ON-WINDOWS-tf3699766.html#a10345880
Sent from the Axis - C++ - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message