From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA32191; Sun, 17 Oct 2004 01:56:49 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 BAA32182 for ; Sun, 17 Oct 2004 01:56:48 +0200 (MET DST) Received: from smtp.syd.swiftdsl.com.au (smtp.syd.swiftdsl.com.au [218.214.224.138]) by nez-perce.inria.fr (8.13.0/8.13.0) with SMTP id i9GNuj3T030502 for ; Sun, 17 Oct 2004 01:56:47 +0200 Received: (qmail 20601 invoked from network); 16 Oct 2004 23:56:47 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp-2.syd.swiftdsl.com.au with SMTP; 16 Oct 2004 23:56:47 -0000 Received: from coltrane (localhost [127.0.0.1]) by coltrane.mega-nerd.net (Postfix) with SMTP id CF2EE7AD8 for ; Sun, 17 Oct 2004 09:56:42 +1000 (EST) Date: Sun, 17 Oct 2004 09:56:42 +1000 From: Erik de Castro Lopo To: caml users Subject: Re: [Caml-list] OCaml-3.08.1/MinGW: alloc_tuple fails Message-Id: <20041017095642.6a254872.ocaml-erikd@mega-nerd.com> In-Reply-To: <6D23AA95-1EB9-11D9-972F-00039310CAE8@inria.fr> References: <20041015.154524.112630031.andrieu@ijm.jussieu.fr> <6D23AA95-1EB9-11D9-972F-00039310CAE8@inria.fr> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4171B53D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 mingw:01 alloc:01 2004:99 damien:01 damien:01 extern:01 compiler:01 compiler:01 ocaml-:01 doligez:01 doligez:01 compile:02 nospam:97 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 15 Oct 2004 16:49:33 +0200 Damien Doligez wrote: > I have another theory for Christoph's problem: maybe some > incompatibility between C and C++ calling conventions. Is it > supposed to work when you compile a C file with a C++ compiler, > then link it with other C files compiled with a C compiler? It will work only if all public functions (ie functions called from the other C files) are declared as extern "C". Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ "There is no satisfactory substitute for excellence." -- Dr. Arnold O. Beckman ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners