is there any interest in porting CommonC++ to MacOS X ? Basically this would mean:
- check for darwin
- If Darwin is found, either
- use pth instead of pthreads or
- emulate almost everything
Thanks
Max
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
mage@amalthea:~/Cvs/CommonC++ > make
Making all in include
cd .. && /bin/sh ./config.status include/config.h
config.status: creating include/config.h
make all-recursive
Making all in cc++
make[3]: Fr das Target all gibt es nichts zu tun.
make[3]: Fr das Target all-am gibt es nichts zu tun.
Making all in src
source='thread.cpp' object='thread.lo' libtool=yes \
depfile='.deps/thread.Plo' tmpdepfile='.deps/thread.TPlo' \
depmode=gcc /bin/sh ../config/depcomp \
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/sw/include/libxml2 -I/sw/include -I../src -DCCXX_EXPORT_LIBRARY -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c -o thread.lo `test -f thread.cpp || echo './'`thread.cpp
mkdir .libs
c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/sw/include/libxml2 -I/sw/include -I../src -DCCXX_EXPORT_LIBRARY -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c thread.cpp -Wp,-MD,.deps/thread.TPlo -fno-common -DPIC -o .libs/thread.lo
In file included from ../include/cc++/common.h:50,
from thread.cpp:41:
../include/cc++/thread.h: In function `static void ost::PosixThread::signalThread(ost::Thread *, int)':
../include/cc++/thread.h:1391: implicit declaration of function `int ost::pthread_kill(...)'
In file included from ../include/cc++/common.h:54,
from thread.cpp:41:
../include/cc++/socket.h: At top level:
../include/cc++/socket.h:560: parse error before `('
../include/cc++/socket.h:564: missing ';' before right brace
../include/cc++/socket.h:565: use of enum `State' without previous declaration
../include/cc++/socket.h:567: parse error before `private'
../include/cc++/socket.h:570: only members can be declared mutable
../include/cc++/socket.h:573: friend declaration not in class definition
../include/cc++/socket.h:575: parse error before `protected'
../include/cc++/socket.h:579: syntax error before `:'
...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
is there any interest in porting CommonC++ to MacOS X ? Basically this would mean:
- check for darwin
- If Darwin is found, either
- use pth instead of pthreads or
- emulate almost everything
Thanks
Max
Here's a litte output from make under MacOS X:
mage@amalthea:~/Cvs/CommonC++ > make
Making all in include
cd .. && /bin/sh ./config.status include/config.h
config.status: creating include/config.h
make all-recursive
Making all in cc++
make[3]: Fr das Target all gibt es nichts zu tun.
make[3]: Fr das Target all-am gibt es nichts zu tun.
Making all in src
source='thread.cpp' object='thread.lo' libtool=yes \ depfile='.deps/thread.Plo' tmpdepfile='.deps/thread.TPlo' \ depmode=gcc /bin/sh ../config/depcomp \ /bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/sw/include/libxml2 -I/sw/include -I../src -DCCXX_EXPORT_LIBRARY -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c -o thread.lo `test -f thread.cpp || echo './'`thread.cpp
mkdir .libs
c++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/sw/include/libxml2 -I/sw/include -I../src -DCCXX_EXPORT_LIBRARY -g -O2 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -c thread.cpp -Wp,-MD,.deps/thread.TPlo -fno-common -DPIC -o .libs/thread.lo
In file included from ../include/cc++/common.h:50,
from thread.cpp:41:
../include/cc++/thread.h: In function `static void ost::PosixThread::signalThread(ost::Thread *, int)':
../include/cc++/thread.h:1391: implicit declaration of function `int ost::pthread_kill(...)'
In file included from ../include/cc++/common.h:54,
from thread.cpp:41:
../include/cc++/socket.h: At top level:
../include/cc++/socket.h:560: parse error before `('
../include/cc++/socket.h:564: missing ';' before right brace
../include/cc++/socket.h:565: use of enum `State' without previous declaration
../include/cc++/socket.h:567: parse error before `private'
../include/cc++/socket.h:570: only members can be declared mutable
../include/cc++/socket.h:573: friend declaration not in class definition
../include/cc++/socket.h:575: parse error before `protected'
../include/cc++/socket.h:579: syntax error before `:'
...
I would be also very interested by CommonC++ to be ported to Mac OS X !