delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/14/11:37:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <399811AB.2F7EF0CF@ece.gatech.edu>
Date: Mon, 14 Aug 2000 11:35:07 -0400
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Earnie Boyd <earnie_boyd AT yahoo DOT com>
CC: "Mohammed Abdel'al" <mma AT msm DOT com DOT eg>, Paul Garceau <pgarceau AT teleport DOT com>,
cygwin AT sourceware DOT cygnus DOT com
Subject: Re: working around "more" (Was Re: what is my mistake?!!!!!)
References: <20000814120928 DOT 25688 DOT qmail AT web124 DOT yahoomail DOT com>

Earnie Boyd wrote:
> 
> --- "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu> wrote:
> > Well, it seems that sometime since I last built cygipc, the strace stuff
> > got reworked to be C++ instead of C.  If you look in strace.h, you see
> > that it declares an "strace" class as well as various "normal"
> > definitions.  Trying to compile ipc-daemon.c with g++ doesn't help,
> > though:
> >
> > $ g++ -Wall -O2 -DVERSION_NUM=1.04 -I./include -I.  -c -o ipc-daemon.o
> > ipc-daemon.c
> >
> 
> G++ as well as gcc uses the input file suffix to determine program type.
> Either use the -x switch to specify that you want c++ or rename the
> ipc-daemon.c file to ipc-daemon.cc.

same result:

gcc  -DVERSION_NUM=1.04 -I./include -I.  -c -o ipc-daemon.o
ipc-daemon.cc
In file included from include/IpcNtExt.h:51,
                 from ipc-daemon.cc:40:
include/IpcNtStr.h:72: ANSI C++ forbids data member `current_nb' with
same name as enclosing class
ipc-daemon.cc: In function `int main(int, char **)':
ipc-daemon.cc:278: ANSI C++ forbids implicit conversion from `void *' in
assignment
make: *** [ipc-daemon.o] Error 1

But the question is, should sys/strace.h *really* contain C++
constructs? I thought system header files were supposed be universally
C, not C++.

--
Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019