From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 832C4BC0A for ; Thu, 15 Feb 2007 14:52:56 +0100 (CET) Received: from parmail01.sgcib.com (parmail01.sgcib.com [207.45.250.33]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1FDqtVr024369 for ; Thu, 15 Feb 2007 14:52:56 +0100 X-IronPort-AV: i="4.14,174,1170630000"; d="scan'208"; a="184303958:sNHT30482932" Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: RE: [Caml-list] OS X, main program in C, No bytecode file specified Date: Thu, 15 Feb 2007 14:52:50 +0100 Message-ID: <7625D6A1880B4C4DA11D2EBB8B43D2B9017467E1@FRDEF-EXMB03.europe.am.socgen> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Caml-list] OS X, main program in C, No bytecode file specified Thread-Index: AcdQ7bm2LE9GqAcKSlmHpYOrs4aXnAAGpdNw From: "EL CHAAR Rabih SGAM/AI/SAM" To: "John Whitington" , X-OriginalArrivalTime: 15 Feb 2007 13:52:51.0835 (UTC) FILETIME=[95CFA4B0:01C75108] X-NAI-Spam-Rules: 1 Rules triggered BAYES_00=-2.5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Miltered: at concorde with ID 45D465B7.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bytecode:01 argv:01 argv:01 bytecode:01 ocaml:01 ocamlopt:01 -output-obj:01 bug:01 ocamlc:01 -output-obj:01 camlrun:01 asmrun:01 ocaml:01 osx:01 beginner's:01 What parameters are you passing in you caml_startup call? I usually do the following char * argv1[2]; argv1[0]=3D"--"; argv1[1]=3DNULL; caml_startup(argv1); -----Message d'origine----- De=A0: caml-list-bounces@yquem.inria.fr [mailto:caml-list-bounces@yquem.inr= ia.fr] De la part de John Whitington Envoy=E9=A0: jeudi 15 f=E9vrier 2007 11:33 =C0=A0: caml-list@inria.fr Objet=A0: [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 nativ= e code=20 using ocamlopt -output-obj and then have XCode compile the C and link the w= hole=20 together. This works well. However, due to a bug which prevents my using natively compiled code at the=20 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/pp= c=2E Can anyone suggest what may be wrong? --=20 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 confid= entiels et etablis a l'intention exclusive de ses destinataires.=20 Toute utilisation ou diffusion non autorisee est interdite.=20 Tout message electronique est susceptible d'alteration.=20 Societe Generale Asset Management et ses filiales declinent toute responsab= ilite au titre de ce message s'il a ete altere, deforme ou falsifie.=20 =20 Decouvrez l'offre et les services de Societe Generale Asset Management sur = le site www.sgam.fr=20 =20 ********=20 =20 This message and any attachments (the "message") are confidential and inten= ded solely for the addressees.=20 Any unauthorised use or dissemination is prohibited.=20 E-mails are susceptible to alteration.=20 Neither Societe Generale Asset Management nor any of its subsidiaries or af= filiates shall be liable for the message if altered, changed or falsified.=20 =20 Find out more about Societe Generale Asset Management's proposal on www.sga= m=2Ecom