Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 67943 invoked from network); 3 Jan 2006 08:04:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jan 2006 08:04:51 -0000 Received: (qmail 93627 invoked by uid 500); 3 Jan 2006 08:04:49 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 93602 invoked by uid 500); 3 Jan 2006 08:04:49 -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 93591 invoked by uid 99); 3 Jan 2006 08:04:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 00:04:49 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [132.230.150.3] (HELO atlas.informatik.uni-freiburg.de) (132.230.150.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 00:04:48 -0800 Received: from juno.informatik.uni-freiburg.de ([132.230.151.45]) by atlas.informatik.uni-freiburg.de with esmtp (Exim 4.54) id 1Eth9f-0002Jz-8t; Tue, 03 Jan 2006 09:04:27 +0100 Received: from juno.informatik.uni-freiburg.de (localhost [127.0.0.1]) by juno.informatik.uni-freiburg.de (8.12.11/8.12.11) with ESMTP id k0384QGK003609; Tue, 3 Jan 2006 09:04:26 +0100 (MET) Received: (from zeisberg@localhost) by juno.informatik.uni-freiburg.de (8.12.11/8.12.11/Submit) id k0384Mg1003608; Tue, 3 Jan 2006 09:04:22 +0100 (MET) Date: Tue, 3 Jan 2006 09:04:22 +0100 From: Uwe Zeisberger To: Alex.Krumm-Heller@csiro.au Cc: dev@apr.apache.org Subject: Re: using APR on fedora core 3 Message-ID: <20060103080422.GB3458@informatik.uni-freiburg.de> Mail-Followup-To: Alex.Krumm-Heller@csiro.au, dev@apr.apache.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040523i Organization: Universitaet Freiburg, Institut f. Informatik X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Alex, Alex.Krumm-Heller@csiro.au wrote: > This is probably an obvious question, but I am having a problem using > APR. I am developing some software using C++ and APR on Windows XP and > Fedora Core 3. I am intending to use APR as a shared library. So far I > have managed to successfully build APR on Windows XP, I have written > some code using it, and have managed to get the program running. However > on Fedora it is a different story. I have compiled APR (merely using: > ./configure, make), and I then tried compiling my code using APR and am > getting an error during compilation: > > INT64_C undeclared Did you use the compiler flags given by apr-config? Try something like: `apr-config --cc` `apr-config --cflags --cppflags` -c lala1.c `apr-config --cc` `apr-config --cflags --cppflags` -c lala2.c `apr-config --cc` `apr-config --link-ld --libs` -o lala lala1.o lala2.o Probably using g++ instead of gcc (aka `apr-config --cc`) works if you need C++. HTH Uwe -- Uwe Zeisberger http://www.google.com/search?q=gigabyte+in+bit