Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] problem while linking
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: EL IDRISSI ABDELLAH <ABDELLAH.ELIDRISSI@s...>
Subject: [Caml-list] problem while linking
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: 
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: 
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. 
Tout message electronique est susceptible d'alteration. 
SG Asset Management et ses filiales declinent toute responsabilite au titre
de ce message s'il a ete altere, deforme ou falsifie.

Découvrez l'offre et les services de SG Asset Management sur le site
www.sgam.fr 

				********

This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither SG Asset Management nor any of its subsidiaries or affiliates shall
be liable for the message if altered, changed or falsified. 

*************************************************************************



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