From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA02703; Fri, 6 Sep 2002 13:41:35 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA02706 for ; Fri, 6 Sep 2002 13:41:34 +0200 (MET DST) Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g86BfX921686 for ; Fri, 6 Sep 2002 13:41:33 +0200 (MET DST) Received: from user-0ccegbj.cable.mindspring.com ([24.199.65.115] helo=cs.cornell.edu) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17nHUR-0007fK-00; Fri, 06 Sep 2002 04:41:31 -0700 Message-ID: <3D78946A.9020000@cs.cornell.edu> Date: Fri, 06 Sep 2002 07:41:30 -0400 From: "Yaron M. Minsky" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?J=E9r=F4me_Marant?= CC: caml-list@inria.fr Subject: Re: [Caml-list] autoconf and caml References: <20020905135720.D5343@pauillac.inria.fr> <20020905161617.A29272@kruuna.Helsinki.FI> <20020906104614.GE607@barcelona.lrde.epita.fr> <3D7889EA.8060406@cs.cornell.edu> <20020906113320.GA16693@barcelona.lrde.epita.fr> <3D788FFC.2020000@cs.cornell.edu> <20020906132829.A23178@fr.thalesgroup.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Maybe I'm wrong. There are two examples I've run up against. First, I have some C-code that's needed on one platform (windows) but not others. So on that platform, I want the function definition to include an "external" reference. On the other platform, the C code doesn't even compile, and so the C object file isn't there and there should be no external reference. The second example is using something like Numerix, where different modules (Dlong, Slong, Clong) are provided on different platforms. Even including the name of, say, module Slong when there is no Slong module will cause a compilation error. Again, I don't see how to get around this without conditional compilation. y Jérôme Marant wrote: > On Fri, Sep 06, 2002 at 07:22:36AM -0400, Yaron M. Minsky wrote: > > >>I personally need real conditional compilation, of the kind that >>requires camlp4 or some other preprocessor. Sometimes you really need >>that because different modules (and/or different external C code) is >>required on different platforms. > > > Why do you need conditional compilation, and how? > Parametric modules makes it possible to replace the need > for conditional compilation. > ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners