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
[Caml-list] "-pack" on win32/msvc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-10-13 (10:09)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] "-pack" on win32/msvc
> Hi, -pack is disabled on msvc builds because nm and objcopy are not 
> installed by default.  However, the cygwin nm and objcopy work on PE format 
> files (msvc objs, libs, and exes), so everything should work just fine 
> (perhaps you didn't know this, Xavier, or maybe you did know it and they're 
> broken in some nonobvious way?).

I was told that nm and objcopy might work on MSVC-generated object
files.  But I was also warned that the .obj file format used by MSVC
might not be *exactly* the documented PE format...  So, basically, it
should work most of the time, but might break.

A perhaps less risky alternative is to use the mingw build of OCaml.
I encourage all our advanced Windows users to give it a try and let us
know if it works well.  If it does, it might provide a better
alternative to the MSVC build (working -pack, no need to fetch MASM
from obscure places, etc).

> I enabled nm and objcopy in the config 
> files, rebuilt, and I've almost got it working (there's a "-o" that needs 
> to be turned into a "-out:" as a parm to link, but that's 
> minor).  The big problem is that when the pack.obj is made by asmpackager, 
> it includes the camlpackage tmp obj file created, so nm dumps out this 
> file's symbols as well.

I don't fully understand what you're describing.  Let us (you and me)
discuss that off-list once you've experimented some more.

- Xavier Leroy
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: