Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] camlidl - object filename collides
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] camlidl - object filename collides
> (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