From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pBAJmRsI024017 for ; Sat, 10 Dec 2011 20:48:27 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am0CAFG3404+3JIEgWdsb2JhbABDqn4iAQEWJiWCM4FxM4d2BpUznxGDeIRbgjdjBJRxhUuMXQ X-IronPort-AV: E=Sophos;i="4.71,332,1320620400"; d="scan'208";a="134851854" Received: from vs.philou.ch ([62.220.146.4]) by mail1-smtp-roc.national.inria.fr with ESMTP; 10 Dec 2011 20:48:22 +0100 Received: from [192.168.1.102] (80-218-99-84.dclient.hispeed.ch [80.218.99.84]) by vs.philou.ch (Postfix) with ESMTPSA id F025869C5E7 for ; Sat, 10 Dec 2011 20:48:21 +0100 (CET) From: Philippe Strauss Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Dec 2011 20:48:06 +0100 Message-Id: <2A63867B-7F56-44F6-BBAC-758851E03CCF@philou.ch> To: caml-list@inria.fr Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id pBAJmRsI024017 Subject: [Caml-list] a very tiny tiny bit of community with good intention and some spare time, guys, I would like to build and improve the ocamlbrowser example in the lablgtk2 applications directory. On my setup (OSX 10.6), the TK one doesn't work, and I fear even on a working setup, it may discourage a lot of newcomers to the language. the problem is, it's the first project I encouter linking against patch.cm? in the compiler lib. which tend to reference all the .cm? under compiler-lib. and It's not documented, or referenced on google. so, how do I link against anything under compiler-lib ? my current and ugly steps: ocamlmklib -I /opt/godi312/lib/ocaml/compiler-lib -o libcompiler path.cmx parse.cmx env.cmx typeclass.cmx typetexp.cmx lexer.cmx typedecl.cmx typemod.cmx btype.cmx config.cmx syntaxerr.cmx ident.cmx printtyp.cmx misc.cmx ctype.cmx - and an OMakefile : - USE_OCAMLFIND = true BYTE_ENABLED = false NATIVE_ENABLED = true OCAMLINCLUDES += /opt/godi312/lib/ocaml/compiler-lib OCAML_LIBS[] += ./libcompiler #OCAML_OTHER_LIBS += str unix unixLabels OCAML_OTHER_LIBS += str unix # unixlabels : cmx only OCAMLPACKS = lablgtk2 OCAMLFLAGS = -g OCamlProgram(browser, editor file jg_memo jg_message jg_message lexical list2 searchid searchpos shell useunix widgets) .DEFAULT: browser.nat .PHONY: clean clean: rm -f *.o *.a rm -f *.cm[aiox] rm -f *.cmx[as] rm -rf *.dSYM/ rm -f *.nat *.native *.opt *.byte *.run rm -f *.omc - Thank you Philippe http://en.wikipedia.org/wiki/File:FireExtinguisherABC.jpg