From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 DE5EEBCAE for ; Fri, 8 Jul 2005 06:58:06 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j684w6Wm021667 for ; Fri, 8 Jul 2005 06:58:06 +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 GAA21830 for ; Fri, 8 Jul 2005 06:58:06 +0200 (MET DST) Received: from us17.unix.fas.harvard.edu (us17.unix.fas.harvard.edu [140.247.35.197]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j684w5bW023159 for ; Fri, 8 Jul 2005 06:58:05 +0200 Received: from ls02.fas.harvard.edu (ls02.fas.harvard.edu [140.247.34.102]) by us17.unix.fas.harvard.edu (8.12.11/8.12.11) with ESMTP id j684w4rq004080 for ; Fri, 8 Jul 2005 00:58:04 -0400 Received: by ls02.fas.harvard.edu (Postfix, from userid 19885) id 92C481C004; Fri, 8 Jul 2005 00:58:04 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by ls02.fas.harvard.edu (Postfix) with ESMTP id 88F1524032 for ; Fri, 8 Jul 2005 00:58:04 -0400 (EDT) Date: Fri, 8 Jul 2005 00:58:04 -0400 (EDT) From: Michael Alexander Hamburg To: caml-list@inria.fr Subject: undefined reference to caml_init_exceptions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde with ID 42CE07DE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42CE07DD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 cmxa:01 ocamlopt:01 -cclib:01 cmxa:01 cmx:01 bytecode:01 ocamlc:01 -custom:01 deprecated:01 exceptions:01 exceptions:01 undefined:01 undefined:01 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=none autolearn=disabled version=3.0.2 X-Spam-Level: I'm working on a project with an event core, coded in an OCaml library with C glue to libevent (not the released one; rather, my own, but I might release it fairly soon). The library is in ocaml-libevent/ocaml_libevent.cmxa, with the C glue in ocaml-libevent/glue.o, symlinked to ./glue.o. When linking the program, make runs: ocamlopt [-o stuff] -cclib -levent ocaml-libevent/ocaml_libevent.cmxa \ [bunch of .cmx files] And it returns: glue.o(.text+0xf): In function `ocaml_event_init': ocaml-libevent/glue.c:47: undefined reference to `caml_init_exceptions' collect2: ld returned 1 exit status Error during linking make: *** [run.opt] Error 2 I can make a bytecode version with ocamlc -custom, or a native version without caml_init_exceptions; is caml_init_exceptions deprecated? Mike