From: Dmitry Bely <dbely@mail.ru>
To: caml-list@inria.fr
Subject: Re: RE : [Caml-list] cygwin/mingw linking
Date: 17 Sep 2001 12:40:31 +0400 [thread overview]
Message-ID: <d74q8b28.fsf@mail.ru> (raw)
In-Reply-To: <000001c13ed9$f39fb540$b1290b50@fourquauche3ay>
"Lionel Fourquaux" <lionel.fourquaux@wanadoo.fr> writes:
> I think that you should use the win32 version of ocaml instead if the
> cygwin one. You may want to rebuild it to use the mingw tools. It's not
> entirely trivial, but it has already been done. The Unix lib causes some
> problems, though.
No problem - it's already adapted for MSVC and can be directly compiled
with mingw because mingw uses just the same clib (msvcrt.dll). What should
be done to compile OCaml with mingw:
1. Manually create proper config/Makefile config/m.h config/s.h (configure
script won't work for mingw).
2. Update many makefiles to sync them with MSVC port (add necessary
conditionals etc.)
3. win32unix library uses undocumented _dospamerr() function that is
available only in the static MSVC runtime. You should exctract it from
Microsoft RTL sources.
4. gcc does not understand __declspec( thread ), so you need somethere
#ifdef __GNUC__
#define TLS __attribute__((section (".tls$")))
#else
#define TLS __declspec( thread )
#endif
5. something else, that I've forgotten to mention...
Hope to hear from you soon,
Dmitry
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-09-17 8:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-16 16:05 CaptnJamesKirk
2001-09-16 18:03 ` RE : " Lionel Fourquaux
2001-09-17 8:40 ` Dmitry Bely [this message]
2001-09-17 10:02 ` RE : " Lionel Fourquaux
2001-09-17 10:35 ` Einar Karttunen
2001-09-17 13:47 ` RE : RE : " Art Yerkes
2001-09-17 15:14 ` Dmitry Bely
2001-09-18 14:24 ` RE : RE : " Xavier Leroy
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=d74q8b28.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