caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: EL IDRISSI ABDELLAH <ABDELLAH.ELIDRISSI@sgam.com>
To: "'caml-list@inria.fr'" <caml-list@inria.fr>
Subject: [Caml-list] problem while linking
Date: Wed, 8 Sep 2004 15:15:36 +0200	[thread overview]
Message-ID: <F8F9E8240570AB4E86DC49B64FDCA2C4028D208C@FR-MAILBOX1.fr.sgam.socgen> (raw)

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


             reply	other threads:[~2004-09-08 13:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-08 13:15 EL IDRISSI ABDELLAH [this message]
2004-09-08 23:33 ` Nathaniel Gray
2004-09-08 15:51 EL CHAAR RABIH

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=F8F9E8240570AB4E86DC49B64FDCA2C4028D208C@FR-MAILBOX1.fr.sgam.socgen \
    --to=abdellah.elidrissi@sgam.com \
    --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;
as well as URLs for NNTP newsgroup(s).