English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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).