Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Annoying compiler magic
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-13 (00:27)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] Annoying compiler magic
> This is a -custom- environment. The question is, why is the compiler
> adding references to these symbols when my code (stdlib.cma &
> libcamlrun.a) does NOT reference these.

You guys make life fun ;-) (Yes, note the sarcasm). So you define
these external functions INTO the compiler itself... an interesting

Looks like I'll have to figure out how to break up the build system to
build JUST the ocamlc compiler and nothing else; use system tools for
everything else.

Is this to ensure your particular implementation of stdlib is
guaranteed to work? As I noticed an interesting error when trying to
build a custom compiler the naive way:

Error while linking ../../stdlib/stdlib.cma(Pervasives):
The external function `caml_ml_input' is not available

Anyways, I assume you did it like this for a good reason.

Jonathan =)