From: Xavier Leroy <xavier.leroy@inria.fr>
To: Jakob Lichtenberg <jl@itu.dk>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] camlidl - object filename collides
Date: Fri, 19 Apr 2002 09:33:04 +0200 [thread overview]
Message-ID: <20020419093304.A11763@pauillac.inria.fr> (raw)
In-Reply-To: <003501c1e71a$b5191390$5ba4389d@redmond.corp.microsoft.com>; from jl@itu.dk on Thu, Apr 18, 2002 at 01:50:43PM -0700
> (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
prev parent reply other threads:[~2002-04-19 7:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-18 20:50 Jakob Lichtenberg
2002-04-19 7:33 ` Xavier Leroy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020419093304.A11763@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=jl@itu.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox