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 JAA11784; Fri, 19 Apr 2002 09:33:28 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA11774 for ; Fri, 19 Apr 2002 09:33:27 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3J7X4L00140; Fri, 19 Apr 2002 09:33:05 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA11778; Fri, 19 Apr 2002 09:33:04 +0200 (MET DST) Date: Fri, 19 Apr 2002 09:33:04 +0200 From: Xavier Leroy To: Jakob Lichtenberg Cc: caml-list@inria.fr Subject: Re: [Caml-list] camlidl - object filename collides Message-ID: <20020419093304.A11763@pauillac.inria.fr> References: <003501c1e71a$b5191390$5ba4389d@redmond.corp.microsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <003501c1e71a$b5191390$5ba4389d@redmond.corp.microsoft.com>; from jl@itu.dk on Thu, Apr 18, 2002 at 01:50:43PM -0700 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > (Sorry for previous post with confusing subject please ignore - here we go > again with proper subject but equivalent contents) > > I have an idl file foo.idl that is used to produce foo.{h,c.ml.mli}. > > However, when I compile foo.ml using the native code compiler I get a > foo.obj file and when I compile foo.c I also get foo.obj. > > I of course need both files during the linking phase so 1) either I have > missed a detail or 2) I need to do a name changing stunt?!? Right, that's a bug in CamlIDL. The generated C file should be named differently, e.g. foo_stubs.c, to avoid the collision on object files that you mention. > If the name changing stunt is the prefered way to go: How should I do it? > (I can for example rename the foo.c file before compilation and it seems to > work.) Yes, you're free to rename the generated .c file to whatever name is convenient for you. - Xavier Leroy ------------------- 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