From: Joel Reymont <joelr1@gmail.com>
To: Matthieu Wipliez <mwipliez@yahoo.fr>
Cc: O'Caml Mailing List <caml-list@yquem.inria.fr>
Subject: Re: Re : [Caml-list] Reference to undefined global `Camlp4_config'
Date: Wed, 11 Mar 2009 13:55:46 +0000 [thread overview]
Message-ID: <61D4F38B-95F9-4250-B164-3408D091BA30@gmail.com> (raw)
In-Reply-To: <871197.89058.qm@web27007.mail.ukl.yahoo.com>
On Mar 11, 2009, at 1:33 PM, Matthieu Wipliez wrote:
>
> I'm not familiar with ocamlfind, but for Camlp4 you need this:
> -I +camlp4 camlp4lib.cma
I was under the impression that ocamlfind -packages takes care of
adding the camlp4 bits.
> Does this solve the problem?
Not really but thanks for trying! The ocamlfind command that
ocamlbuild is using, e.g.
+ ocamlfind ocamlc -verbose -package 'oUnit, extlib, camlp4' -linkpkg -
g src/easy_ast.cmo src/easy_code.cmo src/easy_lexer.cmo src/
easy_symtab.cmo src/token.cmo src/static1.cmo src/easy_parser.cmo src/
test_tools.cmo src/parser_test.cmo src/test.cmo -o src/test.byte
Boils down to this
Effective set of compiler predicates:
pkg_unix,pkg_oUnit,pkg_extlib,pkg_camlp4,autolink,byte
+ ocamlc.opt -verbose -g -o src/test.byte -I /usr/local/lib/ocaml/site-
lib/oUnit -ccopt -I/usr/local/lib/ocaml/site-lib/oUnit -I /usr/local/
lib/ocaml/site-lib/extlib -ccopt -I/usr/local/lib/ocaml/site-lib/
extlib -I /usr/local/lib/ocaml/camlp4 -ccopt -I/usr/local/lib/ocaml/
camlp4 -ccopt -L/usr/local/lib/ocaml/site-lib/oUnit -ccopt -L/usr/
local/lib/ocaml/site-lib/extlib -ccopt -L/usr/local/lib/ocaml/camlp4 /
usr/local/lib/ocaml/unix.cma /usr/local/lib/ocaml/site-lib/oUnit/
oUnit.cma /usr/local/lib/ocaml/site-lib/extlib/extLib.cma src/
easy_ast.cmo src/easy_code.cmo src/easy_lexer.cmo src/easy_symtab.cmo
src/token.cmo src/static1.cmo src/easy_parser.cmo src/test_tools.cmo
src/parser_test.cmo src/test.cmo
File "_none_", line 1, characters 0-1:
Error: Error while linking src/easy_lexer.cmo:
Reference to undefined global `Camlp4_config'
ocamlc.opt returned with exit code 2
Command exited with code 2.
It's using camlp4 for -I and -L but it's not pulling in the library
for some reason.
Thanks, Joel
---
http://tinyco.de
Mac, C++, OCaml
next prev parent reply other threads:[~2009-03-11 13:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-11 13:29 Joel Reymont
2009-03-11 13:33 ` Re : [Caml-list] " Matthieu Wipliez
2009-03-11 13:55 ` Joel Reymont [this message]
2009-03-11 14:04 ` Jérémie Dimino
2009-03-11 14:07 ` Joel Reymont
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=61D4F38B-95F9-4250-B164-3408D091BA30@gmail.com \
--to=joelr1@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=mwipliez@yahoo.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