From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p1NECahC001648 for ; Wed, 23 Feb 2011 15:12:36 +0100 X-IronPort-AV: E=Sophos;i="4.62,212,1297033200"; d="scan'208";a="88531769" Received: from top.inrialpes.fr ([194.199.25.106]) by mail4-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA; 23 Feb 2011 15:12:31 +0100 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1082) From: Alan Schmitt In-Reply-To: Date: Wed, 23 Feb 2011 15:12:31 +0100 Message-Id: <72F459D0-A2D4-4DD7-B06D-B71375A581C4@polytechnique.org> References: <2E007446-C7AD-46D6-8F9C-1377533EF156@polytechnique.org> To: caml-list@inria.fr X-Mailer: Apple Mail (2.1082) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p1NECahC001648 Subject: Re: [Caml-list] Specifying a framework to link with using ocamlopt? (Resending, I forgot to CC the list.) On 23 févr. 2011, at 14:33, Daniel Bünzli wrote: > The -lGl is certainly recorded in the Gl.cmxa, see the documentation > of the -a option here [1]. > > You should review how this cmxa was built and installed. It was produced using ocamlmklib: ocamlmklib -o GL GL.cmx -framework OpenGL -lgl_stubs The "gl_stubs" library is available in the glMLite directory, and does not seem to be the problem. (I just read your other message, and it helped a bit.) The strange thing is that, if I now compile by doing a "-noautolink" and re-adding the exact same library (-cclib "-framework OpenGL"), I get further (with other errors). So it seems that doing "ocamlmklib" with a framework doesn't work, but also prevents specifying the same framework later on on the command line. Thanks for your help! Alan