caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ed Keith <e_d_k@yahoo.com>
To: caml-list@inria.fr
Subject: Problem using camlp4o on windows.
Date: Tue, 27 Jan 2009 08:11:54 -0800 (PST)	[thread overview]
Message-ID: <584127.5307.qm@web54106.mail.re2.yahoo.com> (raw)

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



      


             reply	other threads:[~2009-01-27 16:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-27 16:11 Ed Keith [this message]
2009-01-27 16:37 ` Re : [Caml-list] " Matthieu Wipliez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=584127.5307.qm@web54106.mail.re2.yahoo.com \
    --to=e_d_k@yahoo.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).