Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
AW: [Caml-list] OCaml-3.08.1/MinGW: alloc_tuple fails
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Bauer, Christoph <Christoph.Bauer@l...>
Subject: AW: [Caml-list] OCaml-3.08.1/MinGW: alloc_tuple fails

> More generally speaking, given the way Windows DLLs work, I 
> don't think it is possible at all to put Caml-C stub code in 
> a DLL and pass that DLL to ocamlopt.  Static linking is your 
> friend here.

This solves my problem. The correct is attached.

Thank you all for the answers!
Christoph Bauer

#!/bin/sh -v
gcc -mno-cygwin -c -O  -mms-bitfields -UCAML_DLL -I c:/ocamlmgw/lib test.c
ar rcs libtest.a test.o
ocamlopt -o test_it.exe -cclib "-L. -ltest"