<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/01/b8fa82634e54fd25d86aeafd55576128"
  from="Ed Keith &lt;e_d_k@y...&gt;"
  author="Ed Keith"
  date="2009-01-27T16:58:56"
  subject="Re: Re : [Caml-list] Problem using camlp4o on windows."
  prev="2009/01/dc4838648ee464a8ff2068d149137178"
  next="2009/01/8d8e54f793872ffd56af17cf4847374b"
  prev-thread="2009/01/6bcb9a4ac2176599c516764078bcdc49"
  next-thread="2009/01/95edc08cfde6a09340c5e2f438aca25e"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Re: Re : [Caml-list] Problem using camlp4o on windows.">
<msg 
  url="2009/01/b8fa82634e54fd25d86aeafd55576128"
  from="Ed Keith &lt;e_d_k@y...&gt;"
  author="Ed Keith"
  date="2009-01-27T16:58:56"
  subject="Re: Re : [Caml-list] Problem using camlp4o on windows.">
</msg>
</thread>

<contents>
That solved the problem.

Thank you very much.

    -EdK

Ed Keith
e_d_k@yahoo.com

Blog: edkeith.blogspot.com

--- On Tue, 1/27/09, Matthieu Wipliez &lt;mwipliez@yahoo.fr&gt; wrote:

From: Matthieu Wipliez &lt;mwipliez@yahoo.fr&gt;
Subject: Re : [Caml-list] Problem using camlp4o on windows.
To: caml-list@inria.fr
Date: Tuesday, January 27, 2009, 11:37 AM

&gt;   C:\Documents and Settings\Ed Keith\My Documents\playpen\ocaml&gt;ocaml

&gt;         Objective Caml version 3.11.0
&gt; 
&gt;   # #load "camlp4o.cma";;
&gt;   Characters -1--1:
&gt;     #load "camlp4o.cma";;
&gt; 
&gt;   Error: Reference to undefined global `Dynlink'
&gt;   # exit 0;;
&gt; 
&gt; I have searched the web and I am beginning to suspect that I can not use camlp4 
&gt; 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:

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

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

Cheers,
Matthieu





_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



      

</contents>

</message>

