Mail Archives: cygwin/2000/08/12/22:23:00
> gcc -Wall -O2 -DVERSION_NUM=1.04 -I./include -I. -c -o ipc-daemon.o
> ipc-daemon.c
> In file included from ipc-daemon.c:44:
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/sys/strace.h:24:
> parse error before `strace'
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/sys/strace.h:25:
> syntax error before `{'
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/sys/strace.h:29:
> conflicting types for `write'
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/sys/unistd.h:76:
> previous declaration of `write'
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
In file included from include/IpcNtExt.h:51,
from ipc-daemon.c:40:
include/IpcNtStr.h:72: ANSI C++ forbids data member `current_nb' with
same name as enclosing class
ipc-daemon.c: In function `int main(int, char **)':
ipc-daemon.c:278: ANSI C++ forbids implicit conversion from `void *' in
assignment
I'm not too sure of the significance of the recent (?) changes to
sys/strace.h, so I don't know if the fix for this problem is a bug
there, or if ipc-daemon really should be compiled with g++, and the bug
is actually in cygipc's IpcNtExt.h.
Advice from knowledgeable people (or patches!) eagerly awaited.
--
Chuck Wilson
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -