Browse thread
Building ocaml on Win32 using VS 2008
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2010-04-14 (16:46) |
From: | Lally Singh <lally.singh@g...> |
Subject: | Building ocaml on Win32 using VS 2008 |
Hello, Has anyone had any success building ocaml on Win32 using VS 2008? The normal ocaml/win32 distribution's libcamlrun.a wants some symbols no longer available on the newer runtime libraries (e.g. __pctype and __alloca). I wiped my old cygwin install (which included, amongst other things, ocaml and gcc), and made a minimal bash/sed/make/diffutils one, and ran make under the Visual Studio 2008 Command Prompt. With some path adjustment for flexlink, I can get as far as this: cp yacc/ocamlyacc.exe boot/ocamlyacc.exe cd stdlib ; make -f Makefile.nt COMPILER=../boot/ocamlc all make[1]: Entering directory `/c/real_cygwin/home/lsingh9/src/ocaml-3.11.2/stdlib' ../boot/ocamlrun ../boot/ocamlc -g -warn-error A -nostdlib `./Compflags pervasives.cmi` -c pervasives.mli Fatal error: unknown C primitive `caml_alloc_dummy' make[1]: *** [pervasives.cmi] Error 2 make[1]: Leaving directory `/c/real_cygwin/home/lsingh9/src/ocaml-3.11.2/stdlib' Which leaves me rather confused. Does anyone know what I'm doing wrong? Thanks in advance, -Lally