Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 74373 invoked from network); 16 May 2008 04:25:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 04:25:00 -0000 Received: (qmail 23417 invoked by uid 500); 16 May 2008 04:25:01 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 23406 invoked by uid 500); 16 May 2008 04:25:01 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 23395 invoked by uid 99); 16 May 2008 04:25:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 21:25:01 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of xydinesh@gmail.com designates 209.85.142.184 as permitted sender) Received: from [209.85.142.184] (HELO ti-out-0910.google.com) (209.85.142.184) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 04:24:07 +0000 Received: by ti-out-0910.google.com with SMTP id y6so384758tia.18 for ; Thu, 15 May 2008 21:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=kX320s0IfR/RNAaTLfKh9+rlz4kP1pSZYtGMgoSeBF0=; b=ci2fb2wdHulpEKeP7flBwKLk1Pc05qXwi1Unj7v/blpWjhhkUzijbdpOM2vYEAnbCR9Meo1FLSC23+Tt9SVNGf+yCYQYO3Ysy8OMv55bkOI0URaUECFnFTMYPzyLP2TVkEb3pDgSAdAeQGMENwvLLfTCKFoapPjNr7FQfYz2Ln8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=uvFCuLyk0hM2OJ6YU5Vo2jhzLH0rv+4p70mARIQrl+P9tz6QsWpqNNf0AwjkhZeZ+/AtUWDHTpsptKcA+1f036zNUGDzTo9IDoaCBiiQ0TAQuDrt1dEeYy2GXZ9sdhog8EWuK339Djh0W+Nr8WbzEiT/ojOZSThtcgncDaeAQxc= Received: by 10.110.14.12 with SMTP id 12mr414503tin.31.1210911866366; Thu, 15 May 2008 21:24:26 -0700 (PDT) Received: by 10.110.5.5 with HTTP; Thu, 15 May 2008 21:24:26 -0700 (PDT) Message-ID: Date: Fri, 16 May 2008 09:54:26 +0530 From: "Dinesh Premalal" To: "Apache AXIS C User List" Subject: Re: Linking hello_svc.c example In-Reply-To: <543417.4839.qm@web30701.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8034_19741717.1210911866362" References: <543417.4839.qm@web30701.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_8034_19741717.1210911866362 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Andreas, On Fri, May 16, 2008 at 2:33 AM, Andreas Karseras wrote: > Apologies if this is a basic question but am having trouble linking now. > > Am seeing "undefined reference to..." errors but believe I have all the > correct libraries linked. > > The problematic references include axiom_node_get_first_child, > axiom_node_get_node_type, axiom_node_get_data_element etc. > > I'm linking as follows:- > g++ -LD:\MinGW\lib -LD:\axis2c\lib\ -LD:\axis2c\include -ohello.dll > hello_svc.o -laxutil -laxiom -laxis2_parser -laxis2_engine As Samisa mentioned please check D:\axis2c\lib location for libaxis2_axiom.so , I think you have to link -laxis2_axiom , not -laxiom This is not related to your problem,however You may need to specify header files with -I option not -L, Therefore you may need to change -LD:\axis2c\include into -ID:\axis2c\include , just a wild guess :) thanks, Dinesh -- http://nethu.org/ ------=_Part_8034_19741717.1210911866362 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Andreas,


On Fri, May 16, 2008 at 2:33 AM, Andreas Karseras <akarseras@yahoo.com> wrote:
Apologies if this is a basic question but am having trouble linking now.

Am seeing "undefined reference to..." errors but believe I have all the correct libraries linked.

The problematic references include axiom_node_get_first_child, axiom_node_get_node_type, axiom_node_get_data_element etc.

I'm linking as follows:-
g++ -LD:\MinGW\lib -LD:\axis2c\lib\ -LD:\axis2c\include -ohello.dll hello_svc.o -laxutil -laxiom -laxis2_parser -laxis2_engine

As Samisa mentioned please check D:\axis2c\lib location for libaxis2_axiom.so , I think you have to  link  -laxis2_axiom , not -laxiom

This is not related to your problem,however You may need to specify header files with -I option not -L, Therefore you may need to change -LD:\axis2c\include into -ID:\axis2c\include , just a wild guess :)

thanks,
Dinesh

--
http://nethu.org/ ------=_Part_8034_19741717.1210911866362--