Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 56872 invoked from network); 26 Mar 2009 22:03:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2009 22:03:04 -0000 Received: (qmail 25713 invoked by uid 500); 26 Mar 2009 22:03:04 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 25647 invoked by uid 500); 26 Mar 2009 22:03:04 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 25613 invoked by uid 99); 26 Mar 2009 22:02:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 22:02:57 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=ASF_LIST_OPS,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sameer.kasi200x@gmail.com designates 209.85.198.232 as permitted sender) Received: from [209.85.198.232] (HELO rv-out-0506.google.com) (209.85.198.232) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 22:02:51 +0000 Received: by rv-out-0506.google.com with SMTP id l9so1178846rvb.43 for ; Thu, 26 Mar 2009 15:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=zLCp/I26bepj5uwxKtNgJ8etk2uzhFAuNRirqwpb49A=; b=KvTBVt10ANEIZ0oQyTz984RE+AW1i00XvS97ThM58K/U/gDBAoJ23iN3JGULTYA4L+ O1IXWBnYmnS1NCO3y6vCJLab2HOVF6J95NJJyNB0TmSGkLXhf/zBue7WUWsZXcqiKPQZ PDdarg+zfiyq+5FiYJB3x/SovDK4/bgqSMoss= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=UUS4pxLLl+BRhQkbc1g4CLuZTgkOwUBTji0b+4qq2zntJFX7xk3mduOf5a5z2Fb7tf xl2xyhVCznLUZ77UwQoAycU3vz8kPHSKejEv7XPNdS1eYMNZaVkX8b8i1JkwXBF1nsbb 2HfV2P56+koHEXLOIbPanlh8wDfMD1hEm9Wns= MIME-Version: 1.0 Received: by 10.141.36.17 with SMTP id o17mr671931rvj.261.1238104951080; Thu, 26 Mar 2009 15:02:31 -0700 (PDT) In-Reply-To: <4faa72de0903261501v47c565e8qe3a050b3fa06c595@mail.gmail.com> References: <4faa72de0903250213y86ac186jab3e5587afcc15d8@mail.gmail.com> <4faa72de0903261501v47c565e8qe3a050b3fa06c595@mail.gmail.com> Date: Fri, 27 Mar 2009 03:32:30 +0530 Message-ID: <4faa72de0903261502y3dbbccfpfc34e2f838fc9fcd@mail.gmail.com> Subject: [Problem] Not able to Link APR to my programs From: SAMEER KUMAR To: dev-help@apr.apache.org, dev@apr.apache.org Content-Type: multipart/alternative; boundary=000e0cd1d50ccdcfaa04660cc53b X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd1d50ccdcfaa04660cc53b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Well thnx guys... I tried, as proposed by various users and developers in response to my > query, using the -I. That too did not > work. Finally I managed to serve my purpose using gcc command, executing > apr-$installedversion-config file (ie apr-1-config installed in > /usr/local/apr/bin in my case). I use this file to print the options > required for complition using APR library. > Lately I realized that, I have mistaken your advice being a novice. Here is a snapshot of what I used: > > *[root@a104cc-user86 bin]# gcc $(./apr-1-config --includes) > $(./apr-1-config --libs) $(./apr-1-config --link-ld) $(./apr-1-config > --cflags) $(./apr-1-config --cppflags) /cat.c > * You people suggested to add same thing, what i have added to my command (but in a bit different way)... Nick Kew wrote an excellent book on Apache 2 modules; the old "Writing > Apache Modules in Perl and C" is still somewhat relevant as well. > I would like to know if some one can help me with material on programming with APR. Thnx alot guys... Regards, Sameer Kumar B.Tech, Computer Engineering Institute of Technology, Nirma University, Ahmedabad, Gujarat email: sameer.kasi200x@gmail.com 05bce032@nirmauni.ac.in Phone: +919375220396 --000e0cd1d50ccdcfaa04660cc53b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Well thnx guys...

I tried, as proposed by various users and developers in response to my query, using the -I<path of apr-$installedversion-config>. That too did not work. Finally I managed to serve my purpose using gcc command, executing apr-$installedversion-config file (ie apr-1-config installed in /usr/local/apr/bin in my case). I use this file to print the options required for complition using APR library.
Lately I realized that, I have mistaken your advice being a = novice.

Here is a snapshot of what I used:
=A0
[root@a104cc-user86 bin]# gcc= $(./apr-1-config --includes) $(./apr-1-config --libs) $(./apr-1-config --link-ld) $(./apr-1-config --cflags) $(./apr-1-config --cppflags)=A0 /cat.c

You people suggested to add same thing, what i have added to my command= (but in a bit different way)...


Nick Kew wrote an excellent book on Apache 2 modules; the old "Writing Apache Modules in Perl and C" is still somewhat relevant as well.
<= /blockquote>
I would like to know if some one can help me with mat= erial on programming with APR.

Thnx alot guys...

Regards,

Sameer Kumar
B.Tech, Computer Engineering
Institute of Technology,Nirma University,
Ahmedabad, Gujarat
email: sameer.kasi200x@gmail.com
=A0 =A0 =A0 =A0 =A0 05bce032@nirmauni.ac.in
Phone: +919375220396

=A0

--000e0cd1d50ccdcfaa04660cc53b--