Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
RE: [Caml-list] OS X, main program in C, No bytecode file specified
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
Subject: RE: [Caml-list] OS X, main program in C, No bytecode file specified
What parameters are you passing in you caml_startup call?

I usually do the following

  char * argv1[2];

-----Message d'origine-----
De : [] De la part de John Whitington
Envoyé : jeudi 15 février 2007 11:33
À :
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:
Beginner's list:
Bug reports:
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 
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