From dev-return-14297-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Fri Jun 03 20:40:24 2005 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 29200 invoked from network); 3 Jun 2005 20:40:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jun 2005 20:40:23 -0000 Received: (qmail 72386 invoked by uid 500); 3 Jun 2005 20:40:22 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 72341 invoked by uid 500); 3 Jun 2005 20:40:22 -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 72309 invoked by uid 99); 3 Jun 2005 20:40:21 -0000 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_30_40,HTML_MESSAGE,SPF_HELO_FAIL,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (hermes.apache.org: transitioning domain of nmerrym@us.ibm.com does not designate 32.97.182.150 as permitted sender) Received: from over.ny.us.ibm.com (HELO over.ny.us.ibm.com) (32.97.182.150) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Jun 2005 13:40:16 -0700 Received: from e33.co.us.ibm.com (e33.esmtp.ibm.com [9.14.4.131]) by pokfb.esmtp.ibm.com (8.12.11/8.12.11) with ESMTP id j53Ip5AN030008 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 3 Jun 2005 14:51:06 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e33.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j53InmmD660070 for ; Fri, 3 Jun 2005 14:49:48 -0400 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j53Inl6g167762 for ; Fri, 3 Jun 2005 12:49:47 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id j53Inl8P002479 for ; Fri, 3 Jun 2005 12:49:47 -0600 Received: from d03nm120.boulder.ibm.com (d03nm120.boulder.ibm.com [9.17.195.146]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j53Inli7002472; Fri, 3 Jun 2005 12:49:47 -0600 In-Reply-To: To: dev@apr.apache.org Cc: wes@page.ca MIME-Version: 1.0 Subject: Re: Syntax errors in APR header files when included in my project X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: Nicholas Merryman Date: Fri, 3 Jun 2005 14:50:01 -0400 X-MIMETrack: Serialize by Router on D03NM120/03/M/IBM(Release 6.5.4|March 27, 2005) at 06/03/2005 12:49:46, Serialize complete at 06/03/2005 12:49:46 Content-Type: multipart/alternative; boundary="=_alternative 0067588385257015_=" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multipart message in MIME format. --=_alternative 0067588385257015_= Content-Type: text/plain; charset="US-ASCII" That didn't help -- I still get all the same errors. "Wesley W. Garland" 06/01/2005 05:12 PM Please respond to wes To Nicholas Merryman/Raleigh/IBM@IBMUS cc Subject Re: Syntax errors in APR header files when included in my project Try this: #ifdef __cplusplus extern "C" { #endif #include #include #include #include #include #include #include #include #include #include #ifdef __cplusplus } #endif WFM Wes On 6/1/05, Nicholas Merryman wrote: > > apr.h wasn't included, but including it (in Specific.h or in ClassImpl.cpp) > didn't fix the errors. > > Is there documentation somewhere that explains thing like that? I can't > find any 'this is how you use APR' documentation anywhere .. just a few > one-line function descriptions on apr.apache.org... > > Nick > > > > > > "Dan Johnson" > > 06/01/2005 12:39 PM > > To Nicholas Merryman/Raleigh/IBM@IBMUS, > > cc > > Subject RE: Syntax errors in APR header files when included in my project > > > > > > These look like the errors you'd get if apr.h weren't included. Is there an > error about not being able to find it? > > > > Dan > > > > Daniel M. Johnson Software Engineer | One Hornet Way, MS 9M52/W6 > Northrop Grumman Integrated Systems | El Segundo, CA 90245-2804 > J-UCAS Vehicle Management Systems | Telephone: (310) 345-5253 > > -----Original Message----- > From: Nicholas Merryman [mailto:nmerrym@us.ibm.com] > Sent: Wednesday, June 01, 2005 8:56 AM > To: dev@apr.apache.org > Subject: Syntax errors in APR header files when included in my project > > > > > I'm working on integrating APR into a project I'm working on. When I > #include "apr_pools.h" in a header file of mine (Specific.h), which is then > included by several files in my project, I get dozens of errors from the APR > header files when compiling my project (the APR library compiles cleanly). > I'm doing this so my function headers can include apr_pool_t. Is there a > different apr header I should be using to do this? I wouldn't think so... > > This problem doesn't seem to pop up when I #include "apr_pools.h" in > individual .cpp files, as far as I've noticed. > > I'm working on Windows. > > cl ClassImpl.cpp > ClassImpl.cpp > c:\code\linus\src\apr\apr\include\apr_errno.h(51) : error > C2146: syntax error : > missing ';' before identifier 'apr_strerror' > c:\code\linus\src\apr\apr\include\apr_errno.h(52) : error > C2061: syntax error : > identifier 'apr_size_t' > c:\code\linus\src\apr\apr\include\apr_general.h(159) : > warning C4273: 'memchr' : > inconsistent dll linkage > c:\code\linus\src\apr\apr\include\apr_general.h(175) : > error C2146: syntax error > : missing ';' before identifier 'apr_initialize' > c:\code\linus\src\apr\apr\include\apr_general.h(175) : > error C2733: second C lin > kage of overloaded function 'APR_DECLARE' not allowed > > c:\code\linus\src\apr\apr\include\apr_general.h(175) : see > declaration o > f 'APR_DECLARE' > c:\code\linus\src\apr\apr\include\apr_general.h(189) : > error C2146: syntax error > : missing ';' before identifier 'apr_app_initialize' > c:\code\linus\src\apr\apr\include\apr_general.h(202) : > error C2146: syntax error > : missing ';' before identifier 'apr_terminate' > c:\code\linus\src\apr\apr\include\apr_general.h(213) : > error C2146: syntax error > : missing ';' before identifier 'apr_terminate2' > > etc etc etc > > Any help is appreciated. > > > > > > > > > > > > > > > > -- Wesley W. Garland Director, Product Development PageMail, Inc. +1 613 542 2787 x 102 --=_alternative 0067588385257015_= Content-Type: text/html; charset="US-ASCII"
That didn't help -- I still get all the same errors.




"Wesley W. Garland" <wes.garland@gmail.com>

06/01/2005 05:12 PM
Please respond to
wes

To
Nicholas Merryman/Raleigh/IBM@IBMUS
cc
Subject
Re: Syntax errors in APR header files when included in my project





Try this:

#ifdef __cplusplus
extern "C" {
#endif

#include <apr.h>
#include <apr_version.h>
#include <apr_portable.h>
#include <apr_strings.h>
#include <apr_tables.h>
#include <apr_mmap.h>
#include <apr_signal.h>
#include <apr_poll.h>
#include <apr_hash.h>
#include <apr_lib.h>

#ifdef __cplusplus
}
#endif

WFM

Wes

On 6/1/05, Nicholas Merryman <nmerrym@us.ibm.com> wrote:
>  
> apr.h wasn't included, but including it (in Specific.h or in ClassImpl.cpp)
> didn't fix the errors.
>  
> Is there documentation somewhere that explains thing like that?  I can't
> find any 'this is how you use APR' documentation anywhere .. just a few
> one-line function descriptions on apr.apache.org...
>  
> Nick
>  
>  
>  
>  
>  
>  "Dan Johnson" <dmj@nrtc.northrop.com>
>
> 06/01/2005 12:39 PM
>  
> To Nicholas Merryman/Raleigh/IBM@IBMUS, <dev@apr.apache.org>
>  
> cc
>  
> Subject RE: Syntax errors in APR header files when included in my project
>  
>  
>  
>  
>  
> These look like the errors you'd get if apr.h weren't included. Is there an
> error about not being able to find it?
>
>  
>
> Dan
>
>  
>
> Daniel M. Johnson Software Engineer | One Hornet Way, MS 9M52/W6
>  Northrop Grumman Integrated Systems | El Segundo, CA 90245-2804
>  J-UCAS Vehicle Management Systems | Telephone: (310) 345-5253
>
> -----Original Message-----
>  From: Nicholas Merryman [mailto:nmerrym@us.ibm.com]
>  Sent: Wednesday, June 01, 2005 8:56 AM
>  To: dev@apr.apache.org
>  Subject: Syntax errors in APR header files when included in my project
>
>  
>
>
>  I'm working on integrating APR into a project I'm working on.  When I
> #include "apr_pools.h" in a header file of mine (Specific.h), which is then
> included by several files in my project, I get dozens of errors from the APR
> header files when compiling my project (the APR library compiles cleanly).
> I'm doing this so my function headers can include apr_pool_t.  Is there a
> different apr header I should be using to do this?  I wouldn't think so...
>  
>  This problem doesn't seem to pop up when I #include "apr_pools.h" in
> individual .cpp files, as far as I've noticed.
>  
>  I'm working on Windows.
>  
>  cl <flags> ClassImpl.cpp
>  ClassImpl.cpp
>  c:\code\linus\src\apr\apr\include\apr_errno.h(51) : error
> C2146: syntax error :
>  missing ';' before identifier 'apr_strerror'
>  c:\code\linus\src\apr\apr\include\apr_errno.h(52) : error
> C2061: syntax error :
>  identifier 'apr_size_t'
>  c:\code\linus\src\apr\apr\include\apr_general.h(159) :
> warning C4273: 'memchr' :
>  inconsistent dll linkage
>  c:\code\linus\src\apr\apr\include\apr_general.h(175) :
> error C2146: syntax error
>  : missing ';' before identifier 'apr_initialize'
>  c:\code\linus\src\apr\apr\include\apr_general.h(175) :
> error C2733: second C lin
>  kage of overloaded function 'APR_DECLARE' not allowed
>        
> c:\code\linus\src\apr\apr\include\apr_general.h(175) : see
> declaration o
>  f 'APR_DECLARE'
>  c:\code\linus\src\apr\apr\include\apr_general.h(189) :
> error C2146: syntax error
>  : missing ';' before identifier 'apr_app_initialize'
>  c:\code\linus\src\apr\apr\include\apr_general.h(202) :
> error C2146: syntax error
>  : missing ';' before identifier 'apr_terminate'
>  c:\code\linus\src\apr\apr\include\apr_general.h(213) :
> error C2146: syntax error
>  : missing ';' before identifier 'apr_terminate2'
>  
>  etc etc etc
>  
>  Any help is appreciated.
>
>  
>
>
>
>
>
>
>
>
>
>
>
>
>
>


--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102

--=_alternative 0067588385257015_=--