<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/07/5a5d67ab05e1acac3eabdab240a35981"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-24T08:21:24"
  subject="Re: [Caml-list] Problem building custom toplevel"
  prev="2002/07/b94153a499cfb8e624d1b8a1e738c808"
  next="2002/07/d8be09893e051cef83916581376ca7b6"
  prev-in-thread="2002/07/8bae1873738de0a0761c052e27155d5e"
  next-in-thread="2002/07/5e7fdbf53ef067bd1d56aea82980c4ec"
  prev-thread="2002/07/95de666352c0f6a57db385835c3792d1"
  next-thread="2002/07/a2eea2ec85eb7690de7274a72302113e"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Problem building custom toplevel">
<msg 
  url="2002/07/8bae1873738de0a0761c052e27155d5e"
  from="Rolf Wester &lt;rolf.wester@i...&gt;"
  author="Rolf Wester"
  date="2002-07-23T20:41:21"
  subject="[Caml-list] Problem building custom toplevel">
<msg 
  url="2002/07/5a5d67ab05e1acac3eabdab240a35981"
  from="Alessandro Baretta &lt;alex@b...&gt;"
  author="Alessandro Baretta"
  date="2002-07-24T08:21:24"
  subject="Re: [Caml-list] Problem building custom toplevel">
</msg>
<msg 
  url="2002/07/5e7fdbf53ef067bd1d56aea82980c4ec"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2002-07-25T09:17:00"
  subject="Re: [Caml-list] Problem building custom toplevel">
</msg>
</msg>
</thread>

<contents>
Rolf Wester wrote:
&gt; Hi,
&gt; 
&gt; I have a c++-library compiled with the icc-compiler, a c-interface to this 
&gt; library (cinterface.h and cinterface.cpp) and stubs files generated using 
&gt; camlidl (ocaml_opt.idl, ocaml_opt_stubs.cpp, ocaml_opt.ml, ocaml_opt.mli). 
&gt; I try to build a custom toplevel with:
&gt; 
&gt; 	ocamlmktop -custom -thread unix.cma str.cma bigarray.cma nums.cma \
&gt;                                                    threads.cm graphics.cma \
&gt; 		   ../cinterface/cinterface.o ocaml_opt_stubs.o ocaml_opt.cmo  \
&gt; 		   /usr/lib/libexpat.a \
&gt; 		   /usr/lib/libdfftw.a \
&gt;                    /opt/intel/compiler60/ia32/lib/libcxa.so \
&gt; 	            /lib/ld-linux.so \
&gt; 		   ../lib/libopt.a \
&gt; 		    -cclib -ldl -cclib -lpthread -cclib -lutil -cclib -lm -cclib -lc \
&gt; 		   -o ocaml_opt 
&gt; ...

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

</contents>

</message>

