caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alessandro Baretta <alex@baretta.com>
To: rolf.wester@ilt.fhg.de
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Problem building custom toplevel
Date: Wed, 24 Jul 2002 10:28:51 +0200	[thread overview]
Message-ID: <3D3E6543.2050001@baretta.com> (raw)
In-Reply-To: <200207221608.17010.rolf.wester@ilt.fraunhofer.de>

Rolf Wester wrote:
> 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 
> ...

Apparently no Jedi Camler has answered your question yet, so 
I'll give you my opinion FWIW. I believe you are linking the 
files in the wrong order. All references in a given file 
provided as input to the ocaml compiler during the linking 
phase must be resolved in the files *preceding* it on the 
command line. The fact that the linker is unable to resolve 
such "banal" references as operator new probably indicates 
that libcxa.so should be placed towards the beginning of the 
cammand line. Anyhow, try to work out a dependency DAG 
between the different linking modules, in order to discover 
precisely what conflict(s) is(are) causing the above 
mentioned problem.

I hope this helps. Otherwise, you'll have to wait for one of 
the Jedis to come along and solve the problem.

Alex

-------------------
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


  reply	other threads:[~2002-07-24  8:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-22 14:08 Rolf Wester
2002-07-24  8:28 ` Alessandro Baretta [this message]
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=3D3E6543.2050001@baretta.com \
    --to=alex@baretta.com \
    --cc=caml-list@inria.fr \
    --cc=rolf.wester@ilt.fhg.de \
    /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).