From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id AD65BBB84 for ; Tue, 27 Jan 2009 17:37:37 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvwAAHLHfknZkrEBmWdsb2JhbACUBgEBAQEBCAsKBxGnWo9LBQ X-IronPort-AV: E=Sophos;i="4.37,332,1231110000"; d="scan'208";a="34347213" Received: from web27001.mail.ukl.yahoo.com ([217.146.177.1]) by mail4-smtp-sop.national.inria.fr with SMTP; 27 Jan 2009 17:37:37 +0100 Received: (qmail 43065 invoked by uid 60001); 27 Jan 2009 16:37:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=xWjNpCnV86Ys76KKzLWDIqv4sxfGCSyJk0CDnGUUiTl9nUAdDL30LFF0o3fPLvxpzoelCw1npxyu14Bpo0JsFflSNK9OGt/CPVIjP3UsStNYCUzU/iSJMnDG38yBI4IWXsJRSI6fUj3XzhQ7VPaG6n7/g0gk64Ff4cPiSDjydkU=; X-YMail-OSG: EAFZpywVM1n9Bmhg72e8z6diR5o0uQ6b8blL_EXPqa.IDK0BAMSdiC4P53kYMI9hfNWtLOJNvHo8.lff.g_u3IjkJV67t44pCNJwuLNx2XUMYfF30JaJTlF9GUsjllMlMSQsSIyyTY.IRvYaN8sXJyZM0hrs4N7nPGiw0l2r3.sdGqa52j8KR_DhOKBjxg-- Received: from [193.52.94.5] by web27001.mail.ukl.yahoo.com via HTTP; Tue, 27 Jan 2009 16:37:36 GMT X-Mailer: YahooMailRC/1155.45 YahooMailWebService/0.7.260.1 References: <584127.5307.qm@web54106.mail.re2.yahoo.com> Date: Tue, 27 Jan 2009 16:37:36 +0000 (GMT) From: Matthieu Wipliez Subject: Re : [Caml-list] Problem using camlp4o on windows. To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <831167.43021.qm@web27001.mail.ukl.yahoo.com> X-Spam: no; 0.00; matthieu:01 camlp:01 ocaml:01 ocaml:01 camlp:01 dynlink:01 lib:01 dynlink:01 cheers:01 matthieu:01 caml-list:01 undefined:01 cma:01 cma:01 explicitly:02 > C:\Documents and Settings\Ed Keith\My Documents\playpen\ocaml>ocaml=0A= =0A> Objective Caml version 3.11.0=0A> =0A> # #load "camlp4o.cma"= ;;=0A> Characters -1--1:=0A> #load "camlp4o.cma";;=0A> =0A> Error: = Reference to undefined global `Dynlink'=0A> # exit 0;;=0A> =0A> I have se= arched the web and I am beginning to suspect that I can not use camlp4 =0A>= on a windows system, is this the case?=0A=0AI don't think so :-)=0ASince v= ersion 3.11 if you want to use Camlp4 you also need to explicitly load Dynl= ink, in order to avoid multiple linking problem (or something like that).= =0AThis is listed in the Changes:=0A=0A Camlp4:=0A * programs linked with= camlp4lib.cma now also need dynlink.cma.=0A=0AUsing #load "dynlink.cma";; = before loading camlp4 will do the trick (I just checked).=0A=0ACheers,=0AMa= tthieu=0A=0A=0A=0A