From: "EL CHAAR Rabih SGAM/AI/SAM" <RABIH.ELCHAAR@sgam.com>
To: "John Whitington" <john@pepperfish.net>, <caml-list@inria.fr>
Subject: RE: [Caml-list] OS X, main program in C, No bytecode file specified
Date: Thu, 15 Feb 2007 14:52:50 +0100 [thread overview]
Message-ID: <7625D6A1880B4C4DA11D2EBB8B43D2B9017467E1@FRDEF-EXMB03.europe.am.socgen> (raw)
What parameters are you passing in you caml_startup call?
I usually do the following
char * argv1[2];
argv1[0]="--";
argv1[1]=NULL;
caml_startup(argv1);
-----Message d'origine-----
De : caml-list-bounces@yquem.inria.fr [mailto:caml-list-bounces@yquem.inria.fr] De la part de John Whitington
Envoyé : jeudi 15 février 2007 11:33
À : caml-list@inria.fr
Objet : [Caml-list] OS X, main program in C, No bytecode file specified
Dear all,
I have a main program in C, and some ocaml code. I usually compile to native code
using ocamlopt -output-obj and then have XCode compile the C and link the whole
together. This works well.
However, due to a bug which prevents my using natively compiled code at the
moment, I'm trying to replicate the situation with bytecode.
So now, I use ocamlc -output-obj, and link camlrun instead of asmrun.
This compiles and links but, when run, gives "No bytecode file specified".
The executable is not being stripped. I'm using Ocaml 3.09.3 on OSX 10.4/ppc.
Can anyone suggest what may be wrong?
--
John Whitington
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
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.
Societe Generale Asset Management et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
Decouvrez l'offre et les services de Societe Generale 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 Societe Generale Asset Management nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
Find out more about Societe Generale Asset Management's proposal on www.sgam.com
next reply other threads:[~2007-02-15 13:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-15 13:52 EL CHAAR Rabih SGAM/AI/SAM [this message]
2007-02-15 15:06 ` John Whitington
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=7625D6A1880B4C4DA11D2EBB8B43D2B9017467E1@FRDEF-EXMB03.europe.am.socgen \
--to=rabih.elchaar@sgam.com \
--cc=caml-list@inria.fr \
--cc=john@pepperfish.net \
/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