From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA09658; Wed, 8 Sep 2004 15:15:20 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA08921 for ; Wed, 8 Sep 2004 15:15:19 +0200 (MET DST) Received: from mail.sgam.fr (hades.sgam.com [194.119.92.65]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i88DFJMx032275 for ; Wed, 8 Sep 2004 15:15:19 +0200 Received: from fr-mailcnx1.fr.sgam.socgen (mailcnx1 [10.15.1.6]) by mail.sgam.fr (8.12.10/8.12.10) with ESMTP id i88DFGqR014982 for ; Wed, 8 Sep 2004 15:15:16 +0200 (MEST) Received: by FR-MAILCNX1.fr.sgam.socgen with Internet Mail Service (5.5.2657.72) id ; Wed, 8 Sep 2004 15:15:26 +0200 Message-ID: From: EL IDRISSI ABDELLAH To: "'caml-list@inria.fr'" Subject: [Caml-list] problem while linking Date: Wed, 8 Sep 2004 15:15:36 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Miltered: at concorde with ID 413F05E7.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.01; ocamlopt:01 -output-obj:01 libpath:01 libasmrun:01 libasmrun:01 frametable:01 decouvrez:99 l'offre:99 unauthorised:99 subsidiaries:99 affiliates:99 confidential:98 e-mails:98 ocaml:01 caml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk hello, I'm trying to add some ocaml code to an existing C application and I'm having problems linking the whole thing on Windows. Here's are the commands that I use to build the whole thing:=20 cl /c exemple_c.c ocamlopt -output-obj exemple_ml.ml LINK /LIBPATH:"C:\Program Files\Objective Caml\lib" /OUT:exec.exe libasmrun.lib exemple_ml.obj exemple_ml.obj And here are the link errors that result from the last command:=20 exemple_ml.obj : error LNK2001: unresolved external symbol _caml_curry2 libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _caml_exn_Failure libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _caml_exn_Invalid_argument libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _caml_bucket_Out_of_memory libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _caml_bucket_Stack_overflow libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _caml_exn_Sys_error libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _caml_exn_End_of_file libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _caml_exn_Division_by_zero libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _caml_exn_Not_found libasmrun.lib(fail.obj) : error LNK2001: unresolved external symbol _caml_exn_Sys_blocked_io libasmrun.lib(i386nt.obj) : error LNK2001: unresolved external symbol _caml_apply2 libasmrun.lib(i386nt.obj) : error LNK2001: unresolved external symbol _caml_apply3 libasmrun.lib(i386nt.obj) : error LNK2001: unresolved external symbol _caml_program libasmrun.lib(roots.obj) : error LNK2001: unresolved external symbol _caml_globals libasmrun.lib(roots.obj) : error LNK2001: unresolved external symbol _caml_frametable libasmrun.lib(startup.obj) : error LNK2001: unresolved external symbol _caml_code_segments libasmrun.lib(startup.obj) : error LNK2001: unresolved external symbol _caml_data_segments exec.exe : fatal error LNK1120: 17 unresolved externals ************************************************************************= * Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.=20 Tout message electronique est susceptible d'alteration.=20 SG Asset Management et ses filiales declinent toute responsabilite au = titre de ce message s'il a ete altere, deforme ou falsifie. D=E9couvrez l'offre et les services de SG Asset Management sur le site www.sgam.fr=20 ******** This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.=20 E-mails are susceptible to alteration. =20 Neither SG Asset Management nor any of its subsidiaries or affiliates = shall be liable for the message if altered, changed or falsified.=20 ************************************************************************= * ------------------- 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