Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 3239 invoked from network); 20 Aug 2008 14:20:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Aug 2008 14:20:36 -0000 Received: (qmail 77710 invoked by uid 500); 20 Aug 2008 14:20:34 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 77701 invoked by uid 500); 20 Aug 2008 14:20:34 -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 77690 invoked by uid 99); 20 Aug 2008 14:20:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2008 07:20:34 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajikacc@gmail.com designates 209.85.142.185 as permitted sender) Received: from [209.85.142.185] (HELO ti-out-0910.google.com) (209.85.142.185) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2008 14:19:35 +0000 Received: by ti-out-0910.google.com with SMTP id y6so319558tia.18 for ; Wed, 20 Aug 2008 07:20:02 -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=PDQD0jYiEtWRl8S7saXmj3P2hruC3dlyCebxSTG4vhg=; b=O6vKtO17Sgz8WEJyo8tK1n8eY0CQ5xVjaDbx7SSfthHSMKHBmXKJwuEIqbpbowSkDC 8aZKDVE2k2EGt/yI7wvElakf9vE2epfQ5dPR3eLu5hD4zSsLMLg7EMcOwdIhVC5h+0bw bXaJYJnlEsU3nyuTGuDXp1B3rvrug0FnQhpJM= 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=e49lC31MYeaU/sEeaKIYbZUiMKD+oyIYfP4dABRAGxxQPp4NzEVlBTohoJkHpt1hJS jBCsZBtmMzG8+L/7ct0dDaZZFhqAJMhthDGZ8Y5ukYTaEaYfJ6QnsTxDD0wLxbts5IMl SkkdZWHbZitLwwKvPc/E529AebbTMK0ZCXSg0= Received: by 10.110.57.6 with SMTP id f6mr124765tia.38.1219242002140; Wed, 20 Aug 2008 07:20:02 -0700 (PDT) Received: by 10.110.11.6 with HTTP; Wed, 20 Aug 2008 07:20:02 -0700 (PDT) Message-ID: <696bc1d50808200720u1e77f97r57728e0f03b6a055@mail.gmail.com> Date: Wed, 20 Aug 2008 19:50:02 +0530 From: "Rajika Kumarasiri" To: "Apache AXIS C User List" Subject: Re: compiling with gcc In-Reply-To: <19069660.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_142660_6937202.1219242002122" References: <19066875.post@talk.nabble.com> <19067851.post@talk.nabble.com> <696bc1d50808200503h57f1c340re207a761c2107ddf@mail.gmail.com> <19068424.post@talk.nabble.com> <19069660.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_142660_6937202.1219242002122 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wed, Aug 20, 2008 at 7:09 PM, Martina08 wrote: gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib -laxis2_http_sender -laxis2_http_receiver *.c -Wl,--rpath -Wl,$AXIS2C_HOME/lib -Rajika > Hi, > anyway i have problems to link Libraries i think. I dont know how to > compile > und link the math Example. > I change the command to: > gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib > -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread > -laxis2_http_sender -laxis2_http_receiver math_client.c axis2_math_stub.c > axis2_math_stub.h -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib > but there are still the undefined reference errors:( Can somebody give me a > right gcc command to compile and link the math-example with generated > stubs? > > > > Martina08 wrote: > > > > ok i try it. In the manual the example includes only the hello.c file, > > there is no additional header file for this example, that why it suffices > > only compile and link the hello.c File. So i hope i solve my problem > > otherwise i report my new problem again ;) Thanks for the fast help!! > > > > > > > > jakh wrote: > >> > >> On Wed, Aug 20, 2008 at 5:22 PM, Martina08 > >> wrote: > >> > >>> > >>> hi, > >>> yes i have set my $AXIS2C_HOME variable. I go over the manuals from > >>> where i > >>> have the gcc-command. > >>> But i tried to compile the math example and not the hello example. I go > >>> to > >>> folder $AXIS2C_HOME/samples/client/math. There are the 3 Files, which > i > >>> want to compile and link. The files are: > >>> axis2_math_stub.c > >>> axis2_math_stub.h > >>> math_client.c > >>> Must i include the stub files (.c and .h) into the command? > >> > >> > >> Yes you do, seems like you have missed what is at the end of the command > >> from the manual. > >> > >> -Rajika > >> > >> > >>> I want to have > >>> an executable File, which i can then use with the axis2 server... > >>> > >>> thanks for the answers... > >>> salute > >>> > >>> > >>> > >>> Martina08 wrote: > >>> > > >>> > I want to build the math-example. My command is like the manual: > >>> > gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ > >>> -L$AXIS2C_HOME/lib > >>> > -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread > >>> > -laxis2_http_sender -laxis2_http_receiver math_client.c ldl > >>> -Wl,--rpath > >>> > -Wl,$AXIS2C_HOME/lib > >>> > > >>> > There is the error "Cannot find -laxutil ". I know the Libraries > exist > >>> and > >>> > I set the $AXIS2C_HOME/lib to the LD_LIBRARY_PATH but this dont solve > >>> the > >>> > problem. In which folder I must execute this command? > >>> > Have i forget something? > >>> > When i use the complete Path to the libs like: > >>> > gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ > >>> -L$AXIS2C_HOME/lib > >>> > -L$AXIS2C_HOME/lib/libaxutil.so -L$AXIS2C_HOME/lib/libaxis2_axiom.so > >>> > ........... > >>> > then the compiler find the libraries(there is no error) but then i > get > >>> > much more "undefined reference to"-errors in function main like: > >>> > undefined reference to axutil_env_create_all > >>> > undefined reference to axutil_strcmp > >>> > . > >>> > . > >>> > . > >>> > Does somebody know where is my mistake? > >>> > > >>> > >>> -- > >>> View this message in context: > >>> http://www.nabble.com/compiling-with-gcc-tp19066875p19067851.html > >>> 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 > >>> > >>> > >> > >> > >> -- > >> http://wso2.org/ > >> http://llvm.org/ > >> http://osdev.org/ > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/compiling-with-gcc-tp19066875p19069660.html > 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 > > -- http://wso2.org/ http://llvm.org/ http://osdev.org/ ------=_Part_142660_6937202.1219242002122 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline


On Wed, Aug 20, 2008 at 7:09 PM, Martina08 <martin.willitzkat@gmx.de> wrote:
gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib -laxis2_http_sender -laxis2_http_receiver *.c  -Wl,--rpath -Wl,$AXIS2C_HOME/lib

-Rajika


Hi,
anyway i have problems to link Libraries i think. I dont know how to compile
und link the math Example.
I change the command to:
gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/ -L$AXIS2C_HOME/lib
-laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread
-laxis2_http_sender -laxis2_http_receiver math_client.c axis2_math_stub.c
axis2_math_stub.h -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib
but there are still the undefined reference errors:( Can somebody give me a
right gcc command to compile and link the math-example with generated stubs?



Martina08 wrote:
>
> ok i try it. In the manual the example includes only the hello.c file,
> there is no additional header file for this example, that why it suffices
> only compile and link the hello.c File. So i hope i solve my problem
> otherwise i report my new problem again ;) Thanks for the fast help!!
>
>
>
> jakh wrote:
>>
>> On Wed, Aug 20, 2008 at 5:22 PM, Martina08 <martin.willitzkat@gmx.de>
>> wrote:
>>
>>>
>>> hi,
>>> yes i have set my $AXIS2C_HOME variable. I go over the manuals from
>>> where i
>>> have the gcc-command.
>>> But i tried to compile the math example and not the hello example. I go
>>> to
>>> folder $AXIS2C_HOME/samples/client/math.  There are the 3 Files, which i
>>> want to compile and link. The files are:
>>> axis2_math_stub.c
>>> axis2_math_stub.h
>>> math_client.c
>>> Must i include the stub files (.c and .h) into the command?
>>
>>
>> Yes you do, seems like you have missed what is at the end of the command
>> from the manual.
>>
>> -Rajika
>>
>>
>>> I want to have
>>> an executable File, which i can then use with the axis2 server...
>>>
>>> thanks for the answers...
>>> salute
>>>
>>>
>>>
>>> Martina08 wrote:
>>> >
>>> > I want to build the math-example. My command is like the manual:
>>> > gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/
>>> -L$AXIS2C_HOME/lib
>>> > -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread
>>> > -laxis2_http_sender -laxis2_http_receiver math_client.c ldl
>>> -Wl,--rpath
>>> > -Wl,$AXIS2C_HOME/lib
>>> >
>>> > There is the error "Cannot find -laxutil ". I know the Libraries exist
>>> and
>>> > I set the $AXIS2C_HOME/lib to the LD_LIBRARY_PATH but this dont solve
>>> the
>>> > problem. In which folder I must execute this command?
>>> > Have i forget something?
>>> > When i use the complete Path to the libs like:
>>> > gcc -o mathexecute -I$AXIS2C_HOME/include/axis2-1.5.0/
>>> -L$AXIS2C_HOME/lib
>>> > -L$AXIS2C_HOME/lib/libaxutil.so -L$AXIS2C_HOME/lib/libaxis2_axiom.so
>>> > ...........
>>> > then the compiler find the libraries(there is no error) but then i get
>>> > much more "undefined reference to"-errors in function main like:
>>> > undefined reference to axutil_env_create_all
>>> > undefined reference to axutil_strcmp
>>> > .
>>> > .
>>> > .
>>> > Does somebody know where is my mistake?
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/compiling-with-gcc-tp19066875p19067851.html
>>> 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
>>>
>>>
>>
>>
>> --
>> http://wso2.org/
>> http://llvm.org/
>> http://osdev.org/
>>
>>
>
>

--
View this message in context: http://www.nabble.com/compiling-with-gcc-tp19066875p19069660.html
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




--
http://wso2.org/
http://llvm.org/
http://osdev.org/
------=_Part_142660_6937202.1219242002122--