[
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: | Ed Keith <e_d_k@y...> |
| Subject: | Problem using camlp4o on windows. |
I am trying to learn to use camlp4. I started by working my way through the tutorial at http://www.ocaml-tutorial.org/camlp4_3.10/foreach_tutorial
I created the file :
open Camlp4.PreCast
open Syntax
EXTEND Gram
expr: LEVEL "top"
[ [ "for"; v = a_LIDENT; "in"; m = a_UIDENT; e = expr; "do";
seq = sequence; "done" ->
<:expr< $uid:m$.iter (fun $lid:v$ -> $seq$) $e$ >>
] ]
;
END
and complied it with the command line:
C:\Documents and Settings\Ed Keith\My Documents\playpen\ocaml>ocamlc -I +camlp4 camlp4lib.cma -pp camlp4orf -c pa_foreach.ml
So far so good. Then I ran into the following problem when I tried to use it. Here is the result:
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?
If so I can move to a Linux box, but if I can not use it to generate portable code it will not be very useful for me to learn it.
-EdK
Ed Keith
e_d_k@yahoo.com
Blog: edkeith.blogspot.com