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.6 required=5.0 tests=MSGID_LONG,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id D1798BBC4 for ; Mon, 16 Mar 2009 20:00:22 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtUBAAc/vklQW+UCe2dsb2JhbACUL4ETAQEWIgS/YoN/Bg X-IronPort-AV: E=Sophos;i="4.38,374,1233529200"; d="scan'208";a="36637346" Received: from main.gmane.org (HELO ciao.gmane.org) ([80.91.229.2]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 16 Mar 2009 20:00:08 +0100 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LjI2c-0002Hz-Ks for caml-list@inria.fr; Mon, 16 Mar 2009 19:00:02 +0000 Received: from 97-113-218-235.tukw.qwest.net ([97.113.218.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Mar 2009 19:00:02 +0000 Received: from dynasticon by 97-113-218-235.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Mar 2009 19:00:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Jeffrey Scofield Subject: Re: Compiling with Xcode Date: Mon, 16 Mar 2009 11:56:08 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 97-113-218-235.tukw.qwest.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) Cancel-Lock: sha1:ssZmgq914b/il1XDC5el0bJjh74= Sender: news X-Spam: no; 0.00; usr:01 usr:01 lib:01 ocaml:01 lib:01 ocaml:01 -lunix:01 libasmrun:01 tsort:01 ranlib:01 ranlib:01 xcode:98 unsatisfied:98 macosx:01 macosx:01 John Whitington writes: > /Developer/usr/bin/gcc-4.0 -arch i386 > -isysroot /Developer/SDKs/MacOSX10.5.sdk > -L/Users/john/Desktop/Cversion/build/Debug > -L/Developer/SDKs/MacOSX10.5.sdk/usr/local/lib/ocaml > -L/Users/john/svnrepos/trunk > -L/Users/john/Desktop/Cversion/../../svnrepos/trunk > -F/Users/john/Desktop/Cversion/build/Debug > -filelist /Users/john/Desktop/Cversion/build/Cversion.build/Debug/ > Cversion.build/Objects-normal/i386/Cversion.LinkFileList > -mmacosx-version-min=10.5 > -L/usr/local/lib/ocaml -lunix -lbigarray -lstr -lz > /Users/john/Desktop/Cversion/../../svnrepos/trunk/cpdflib.a > /Users/john/Desktop/Cversion/../../svnrepos/trunk/zlibstubs.o > -o /Users/john/Desktop/Cversion/build/Debug/Cversion > Undefined symbols: > "_caml_atom_table", referenced from: ... Well, caml_atom_table is defined in libasmrun.a, which you have copied and augmented with your own object files. A lot of the unsatisfied references are from cpdflib.a itself. The normal ways to handle this problem are to tsort the .o files in the archive (old fashioned way) or to add a symbol table to the archive with ranlib. Perhaps you need to run ranlib on it after adding your .o files? Regards, Jeff Scofield Seattle