caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dmitry Bely <dbely@mail.ru>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlmklib in mingw
Date: Sun, 22 Dec 2002 01:32:35 +0300	[thread overview]
Message-ID: <isxnypdo.fsf@mail.ru> (raw)
In-Reply-To: <003901c2a89a$17d09210$fe00a8c0@hama> ("SooHyoung Oh"'s message of "Sat, 21 Dec 2002 11:38:49 +0900")

"SooHyoung Oh" <shoh@duonix.com> writes:

>> Correct: ocamlmklib is only available under Unix (and Cygwin), but not
>> for the native Win32 port of OCaml.
>>
>> The reason is as follows: ocamlmklib builds both a DLL and a static
>> library from a common set of C object files.  This works fine under
>> Unix because (with the right compilation options) the same object
>> files can be used in both DLL and static contexts.  But this isn't so
>> under Windows: object files for a DLL need to be compiled with
>> different, incompatible flags than object files for a static library.
>
> How about ocamlmklib on win32/mingw?

Currently it's also not possible because MinGW/MSVC builds use the same
makefiles. But I believe both can be fixed because the sentense

>>>object files for a DLL need to be compiled with
>> different, incompatible flags than object files for a static library.

seems to be not very correct (it is possible to built both static and
dynamic Win32 library from the same objects files, although with some
linker warnings. Of course, some modifications to sources/makefiles are
required).

- Dmitry Bely


-------------------
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


      reply	other threads:[~2002-12-21 22:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-21  2:38 SooHyoung Oh
2002-12-21 22:32 ` Dmitry Bely [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=isxnypdo.fsf@mail.ru \
    --to=dbely@mail.ru \
    --cc=caml-list@inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).