From: Grzegorz J. <ja...@he...> - 2003-02-18 01:23:05
|
On 2003-02-15 Alexandre Tolmos wrote: > Hugh > > > Hello, > > > > On Fri, Feb 14, 2003 at 09:44:39AM +0800, Grzegorz Jakacki wrote: > >> On Thu, 13 Feb 2003, Alexandre Tolmos wrote: > >>> I would like to use OpenC++ on MacOs X. Compiling occ itself > >>> shouldn't > >>> be a big issue (Darwin, the core Os is FreeBSD based) but the garbage > >>> collector is Os and architecture dependent. So, my questions are: > >>> > >>> - Is there a Mosx port of GC? > >> > >> It seems to me that recent versions of Hans Boehm's GC supports MacOS > >> X. > > [...] > >> Try to build with one of them and let me know if it works. MacOS X > >> port > >> of OpenC++ would be very welcome. > > > > JFTR: I have built OpenC++ with a different GC than the included > > one. Here's what I did: > > + clear the "gc" subdirectory from the OpenC++ source tree > > + install the garbage collector into that directory > > + symlink all files from "gc/include" into "gc". OpenC++ wants > > to say "#include <gc/gc.h>". > > > > The versions I tried were GC 6.1 and OpenC++ 2.5.12; I still > > have to try the CVS version. > > I replaced the current Gc in the Cvs version with Gc 6.1. It compiles > without any problem but Occ itself does not compile at all, I get tons > of errors. The Gcc version > shipped with the Mosx dev package is 3.1. Which version do you use to > compile Occ? OpenC++ sources does not conform to namespaces scheme mandated by C++ standard (i.e. that standard library components live in 'std' namespace). OpenC++ DOES NOT compile with gcc>=3.0. It is not difficult to fix and somebody has already done it, but nobody had enough will to check it in. Go to OpenC++ project page at www.sf.net and search the archive of opencxx-user, the link to the gcc-3.0 compatible version has been posted here. If you can spare some time to merge the changes with HEAD revision and check it in, the heavens will thank you (and I will join too). > Note: to compile Occ, I duplicated "Makefile.FreeBSD" in "src/Unix" and > used "make -f Makefile.Darwin all". *PLEASE* work on CVS HEAD. 2.5.12/2.5.13 is difficult to maintain because of code duplication in its build system. OpenC++ project does not have resources to maintain it. Moreover, 2.5.12 does not include test harness nor test suite, which disables reliable development, because you have no means to verify if your contribution breaks the current functionality. It is likely that your otherwise very valuable work will not be useful if you stick to 2.5.12 . Best regards Grzegorz FYI: The original posting of your message somehow did not make it to my mailbox. ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |