Browse thread
[Caml-list] Problem building custom toplevel
-
Rolf Wester
- Alessandro Baretta
- Xavier Leroy
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Xavier Leroy <xavier.leroy@i...> |
| Subject: | Re: [Caml-list] Problem building custom toplevel |
> I have a c++-library compiled with the icc-compiler, a c-interface to this
> library (cinterface.h and cinterface.cpp) and stubs files generated using
> camlidl (ocaml_opt.idl, ocaml_opt_stubs.cpp, ocaml_opt.ml, ocaml_opt.mli).
> I try to build a custom toplevel with:
> [...]
> but get an almost endless list of undefined references (almost 6000 lines of
> output). Here some examples:
I avoid C++ as much as I can, so this is just a wild guess. Could it
be that you're calling the wrong linker? ocamlmltop -custom performs
its linking stage by calling the C compiler that was used to build
OCaml, usually cc or gcc. (You can see exactly how the linker is
called by adding the flag -verbose.) Maybe you need to use icc as the
linker, or pass some magic flag to it telling that you're using C++
libraries. You can do that with the -cc flag, e.g.
ocamlmktop -cc "icc <whatever options>" -custom ...
Good luck,
- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners