* [Caml-list] camlidl - object filename collides
@ 2002-04-18 20:50 Jakob Lichtenberg
2002-04-19 7:33 ` Xavier Leroy
0 siblings, 1 reply; 2+ messages in thread
From: Jakob Lichtenberg @ 2002-04-18 20:50 UTC (permalink / raw)
To: caml-list
(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?!?
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.)
Thanks,
- Jakob Lichtenberg
-------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] camlidl - object filename collides
2002-04-18 20:50 [Caml-list] camlidl - object filename collides Jakob Lichtenberg
@ 2002-04-19 7:33 ` Xavier Leroy
0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 2002-04-19 7:33 UTC (permalink / raw)
To: Jakob Lichtenberg; +Cc: caml-list
> (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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-19 7:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-18 20:50 [Caml-list] camlidl - object filename collides Jakob Lichtenberg
2002-04-19 7:33 ` Xavier Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox