From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id D6F0CBC84 for ; Sat, 30 Apr 2005 01:00:07 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3TN073N005849 for ; Sat, 30 Apr 2005 01:00:07 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA17711 for ; Sat, 30 Apr 2005 01:00:07 +0200 (MET DST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3TN06QX005842 for ; Sat, 30 Apr 2005 01:00:06 +0200 Received: by zproxy.gmail.com with SMTP id 8so856026nzo for ; Fri, 29 Apr 2005 16:00:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=cNRP7uX82sos0S3GAzKk7HQgx6sOBq3Ml/py0uOeyMRUcSYRLRV1kDNCszhkns/00u1kSH2bQ09QXxu+gZ7ew1R0AKomS2+4bYrm/sWBurXEgsZMTdy5azDK0IC/aooiUGedmRCuE/bMUVQn9e7VG7USgeJ7baOQpOUwZGvGikM= Received: by 10.36.24.7 with SMTP id 7mr256563nzx; Fri, 29 Apr 2005 16:00:06 -0700 (PDT) Received: by 10.36.60.20 with HTTP; Fri, 29 Apr 2005 16:00:05 -0700 (PDT) Message-ID: <5229f04d0504291600371bfcf7@mail.gmail.com> Date: Fri, 29 Apr 2005 16:00:05 -0700 From: Christian Szegedy Reply-To: Christian Szegedy To: caml-list@inria.fr Subject: Main program in C + using Pervasives = Missing symbols Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Miltered: at nez-perce with ID 4272BC77.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4272BC76.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; pervasives:01 ocaml:01 ocaml:01 pervasives:01 lib:01 asmrun:01 ...:98 functions:01 functions:01 native:02 unresolved:02 linking:03 module:03 routines:03 tutorial:04 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: I am trying to embed native compiled OCaml routines into a C++ program. I used the documentation of the OCaml tutorial and Developing Applications in OCaml, and it worked fine until I used some functions from the Pervasives module. These functions cause unresolved symbols while linking the program. I looked at other lib<...>.a files (rather then asmrun) in the ocaml distribution directory, but none of them contained the missing symbols. What to do?