Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 29006 invoked from network); 25 Mar 2009 12:36:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2009 12:36:39 -0000 Received: (qmail 67387 invoked by uid 500); 25 Mar 2009 12:36:38 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 67318 invoked by uid 500); 25 Mar 2009 12:36:38 -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 67310 invoked by uid 99); 25 Mar 2009 12:36:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 12:36:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of covener@gmail.com designates 74.125.44.28 as permitted sender) Received: from [74.125.44.28] (HELO yx-out-2324.google.com) (74.125.44.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 12:36:31 +0000 Received: by yx-out-2324.google.com with SMTP id 8so8167yxm.13 for ; Wed, 25 Mar 2009 05:36:10 -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:cc:content-type :content-transfer-encoding; bh=BQZFr7rGC88djEd7GW5+3YVSkOC4oLEVx9A4US2cBqU=; b=QJJDKFvxSgd0qnfIR+AHcLHF1qqRR0ILzycNAtkKaw5gRSuLX59jAV9z/gOqhU/zLB VMN87yJmVfIh/JI5VoBHGQcP2fNaU/ekTpjVaGiF/bhyg7NXx0o9PQK6EySWZcvVXXnq ZqAEzX3zaXQhTnPwjn6Z7a+HvKMcpYUb43IKQ= 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 :cc:content-type:content-transfer-encoding; b=CW2/LLdYdiUelDFhmbJtOGEv0clLJHAt52QF/eNfnbfpmC40wShzF5fkVgpua1vmK+ tnv8xAsOksfrffUTRnbYPuxB0gnPPfgHzXyZDjUmRwBaosKIc2NVDG2qgCKO+RVj9QGw YUJNV0YYZskG2YvFYUOtzpVlY2evt1HNg1QU4= MIME-Version: 1.0 Received: by 10.90.120.19 with SMTP id s19mr5540130agc.55.1237984570412; Wed, 25 Mar 2009 05:36:10 -0700 (PDT) In-Reply-To: <4faa72de0903250213y86ac186jab3e5587afcc15d8@mail.gmail.com> References: <4faa72de0903250213y86ac186jab3e5587afcc15d8@mail.gmail.com> Date: Wed, 25 Mar 2009 08:36:10 -0400 Message-ID: <1404e5910903250536nf848b15xf5610a9daceff77f@mail.gmail.com> Subject: Re: [Problem] Not able to Link APR to my programs From: Eric Covener To: dev@apr.apache.org Cc: SAMEER KUMAR Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Mar 25, 2009 at 5:13 AM, SAMEER KUMAR w= rote: > I am new to APR. I am going to use it for developing a Apache like hybrid > architecture for OpenSIPS [www.opensips.org], which an open source SIP[RF= C > 3261] server. > > I have downloaded APR and installed it on my Fedora 9 machine using the > configure and make commands. I tested the installation with testall. But = I > am not able to use this in my programs and not able to link to the header > files in APR. > > I am using a cat1.c program to run, in which I am using functions of APR > module. I have tried these gcc commands: > > gcc -l lapr-1=A0 /cat1.c > > gcc /cat1.c -L. -lapr-1 > > my working directory is > > /usr/local/apr/lib > > I am getting following set of errors: > > /cat1.c:1:23: error: apr_pools.h: No such file or directory You're not finding the installed APR headers. Try adding apr-1-config --includes to your compiler flags. (you might need to find where apr-1-config was installed when you built apr= ) --=20 Eric Covener covener@gmail.com