caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Problem using camlp4o on windows.
@ 2009-01-27 16:11 Ed Keith
  2009-01-27 16:37 ` Re : [Caml-list] " Matthieu Wipliez
  0 siblings, 1 reply; 2+ messages in thread
From: Ed Keith @ 2009-01-27 16:11 UTC (permalink / raw)
  To: caml-list

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



      


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-27 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-27 16:11 Problem using camlp4o on windows Ed Keith
2009-01-27 16:37 ` Re : [Caml-list] " Matthieu Wipliez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).