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
Problem using camlp4o on windows.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-01-27 (16:37)
From: Matthieu Wipliez <mwipliez@y...>
Subject: Re : [Caml-list] Problem using camlp4o on windows.
>   C:\Documents and Settings\Ed Keith\My Documents\playpen\ocaml>ocaml

>         Objective Caml version 3.11.0
>   # #load "camlp4o.cma";;
>   Characters -1--1:
>     #load "camlp4o.cma";;
>   Error: Reference to undefined global `Dynlink'
>   # exit 0;;
> I have searched the web and I am beginning to suspect that I can not use camlp4 
> on a windows system, is this the case?

I don't think so :-)
Since version 3.11 if you want to use Camlp4 you also need to explicitly load Dynlink, in order to avoid multiple linking problem (or something like that).
This is listed in the Changes:

  * programs linked with camlp4lib.cma now also need dynlink.cma.

Using #load "dynlink.cma";; before loading camlp4 will do the trick (I just checked).