caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Johann Spies <jspies@sun.ac.za>
To: caml-list@inria.fr
Subject: [Caml-list] Ocamlmakefile and Lablgtk
Date: Mon, 12 Nov 2001 15:36:48 +0200	[thread overview]
Message-ID: <20011112153648.A736@adept.co.za> (raw)

 am trying to figure out how to use Ocamlmakefile to compile
 lablgtk programs.

 With the following Makefile:

 --------------------------------------------------------
 OCAMLMAKEFILE=/usr/share/ocaml-tools/OcamlMakefile
 SOURCES=calc.ml
 RESULT=calc
 LIBS=lablgtk gtkInit
 INCDIRS=+lablgtk
 OCAMLFLAGS=-labels
 include $(OCAMLMAKEFILE)
 ----------------------------------------------------------

 I get :
 ----------------------------------------------------------
 js-19:07:58-/tmp$make
 make[1]: Entering directory `/tmp'
 ocamlc  -I +lablgtk        lablgtk.cma gtkInit.cma     -o calc \
                         calc.cmo
Cannot find file gtkInit.cma
make[1]: *** [calc] Error 2
make[1]: Leaving directory `/tmp'
make: *** [byte-code] Error 2

js-19:07:59-/tmp$make nc
make[1]: Entering directory `/tmp'
ocamlopt   -I +lablgtk
lablgtk.cmxa gtkInit.cmxa     -o calc \
                        calc.cmx
Cannot find file gtkInit.cmxa
make[1]: *** [calc] Error 2
make[1]: Leaving directory `/tmp'
make: *** [native-code]
Error 2
-----------------------------------------------------------
How do I inform the compiler through Ocamlmakefile to use options
gtkInit.cmx as in 

ocamlopt -I +lablgtk -labels -o testgtk.opt lablgtk.cmxa gtkInit.cmx
testgtk.ml ?

Regards.
Johann
			 
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "He that loveth father of mother more than me is not 
      worthy of me; and he that loveth son or daughter more 
      than me is not worthy of me. And he that taketh not 
      his cross, and followeth after me, is not worthy of 
      me."                   Matthew 10:37,38 
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


             reply	other threads:[~2001-11-12 17:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-12 13:36 Johann Spies [this message]
2001-11-12 17:59 ` Markus Mottl
2001-11-12 22:17   ` Johann Spies
2001-11-12 23:40     ` Markus Mottl
2001-11-13  8:10       ` Florian Hars
2001-11-13  8:54         ` Markus Mottl
2001-11-14 13:57           ` Jacques Garrigue
2001-11-14 14:10             ` Markus Mottl
2001-11-13 12:37         ` Johann Spies

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=20011112153648.A736@adept.co.za \
    --to=jspies@sun.ac.za \
    --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).