[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Yaron M. Minsky <yminsky@C...> |
| Subject: | Re: [Caml-list] autoconf and caml |
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