From: Rolf Wester <rolf.wester@ilt.fhg.de>
To: caml-list@inria.fr
Subject: [Caml-list] Problem building custom toplevel
Date: Mon, 22 Jul 2002 16:08:16 +0200 [thread overview]
Message-ID: <200207221608.17010.rolf.wester@ilt.fraunhofer.de> (raw)
Hi,
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:
ocamlmktop -custom -thread unix.cma str.cma bigarray.cma nums.cma \
threads.cm graphics.cma \
../cinterface/cinterface.o ocaml_opt_stubs.o ocaml_opt.cmo \
/usr/lib/libexpat.a \
/usr/lib/libdfftw.a \
/opt/intel/compiler60/ia32/lib/libcxa.so \
/lib/ld-linux.so \
../lib/libopt.a \
-cclib -ldl -cclib -lpthread -cclib -lutil -cclib -lm -cclib -lc \
-o ocaml_opt
but get an almost endless list of undefined references (almost 6000 lines of
output). Here some examples:
../cinterface/cinterface.o(.text+0x1a): undefined reference to `operator
new[](unsigned)'
../cinterface/cinterface.o(.text+0xb10): undefined reference to
`std::_String_base::_Xran() const'
../cinterface/cinterface.o: In function
`std::out_of_range::out_of_range(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
oe_m2.o(.gnu.linkonce.t._ZNSt6vectorIS_IdSaIdEESaIS1_EE9_Insert_nEPS1_jRKS1_+0x95e):
undefined reference to `__cxa_end_catch'
oe_m2.o is in libopt.a.
I don't have any idea how to solve this problem. I would be very appreciative
for help.
Thanks in advance
Rolf Wester
P.S.: If icc is the problem, compiling libopt.a with g++ would be no option.
But it should work somehow, I have built a shared library for use with Python
and that one works.
-------------------
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
next reply other threads:[~2002-07-23 20:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-22 14:08 Rolf Wester [this message]
2002-07-24 8:28 ` Alessandro Baretta
2002-07-25 9:16 ` Xavier Leroy
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=200207221608.17010.rolf.wester@ilt.fraunhofer.de \
--to=rolf.wester@ilt.fhg.de \
--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