Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 73834 invoked from network); 15 Jul 2008 12:03:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jul 2008 12:03:24 -0000 Received: (qmail 23354 invoked by uid 500); 15 Jul 2008 12:03:24 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 23148 invoked by uid 500); 15 Jul 2008 12:03:23 -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 23137 invoked by uid 99); 15 Jul 2008 12:03:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 05:03:23 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 12:02:29 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KIjC3-0005jG-Ik for dev@apr.apache.org; Tue, 15 Jul 2008 04:59:43 -0700 Message-ID: <18463094.post@talk.nabble.com> Date: Tue, 15 Jul 2008 04:59:43 -0700 (PDT) From: Yogesh Test To: dev@apr.apache.org Subject: Error in including apr library in c code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: ychaturvedi@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have created a very basic program in c using apache portable run time library version -1.2.12 , when i try to compile the program i am getting problem as : /usr/local/apr-1.2.12/include/apr.h:273: error: expected =E2=80=98=3D=E2=80= =99, =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or =E2=80=98__attribute__=E2=80=99 before =E2=80=98ap= r_off_t=E2=80=99 My make file is : CC=3Dgcc CFLAGS=3D-c -Wall LDFLAGS:=3D=20 LDLIBS:=3D SOURCES:=3D BINDIR=3D ./bin DATADIR=3D./data CONFDIR=3D$(DATADIR)/conf EXECUTABLE=3DValidate DAEMON =3D 1 SOURCESDIR =3D ./trialc SOURCES =3D $(shell ls $(SOURCESDIR)/*.c) OBJECTS=3D $(SOURCES:.c=3D.o) LDFLAGS=09+=3D `/usr/local/apr-1.2.12/apr-1-config --cppflags --libs` LDLIBS=09+=3D /usr/local/apr-1.2.12/.libs/libapr-1.a all: $(EXECUTABLE)=20 $(EXECUTABLE): $(OBJECTS) =20 =09$(CC) $(SOURCES) $(LDFLAGS) $(LDLIBS) -o $(BINDIR)/$@ .cpp.o: =09$(CC) $(CFLAGS) $< -o $@ One thing more i want to add when i change statement in make file and use= =20 $(EXECUTABLE): =20 instead of=20 $(EXECUTABLE): $(OBJECTS)=20 Then it compile successfully. please help where i am wrong Yogesh --=20 View this message in context: http://www.nabble.com/Error-in-including-apr-= library-in-c-code-tp18463094p18463094.html Sent from the APR Dev (Apache Portable Runtime) mailing list archive at Nab= ble.com.