I'm trying to get my port of the WIN32 headers working with Digital Mars D Compiler v2.029 (see the dsource project core32) the minium set I can find to reproduce the issue is set FLGS=-w -inline -release dmd %FLGS% -c win32/com/OAIDL.d -I.. ..... etc .... lib -c win32.lib d3d8types.obj d3d8caps.obj dxerr8.obj DOCOBJ.obj OBJIDL.obj extras.obj MSHTMHST.obj OLEIDL.obj OAIDL.obj EXDISP.obj Digital Mars Librarian Version 8.02n Copyright (C) Digital Mars 2000-2007 All Rights Reserved http://www.digitalmars.com/ctg/lib.html Error: /PAGESIZE:16 is too small N.B. this only appears with BOTH -release and -inline -release -O or -inline -O does not cause the error. as I'm not too sure what the error means I'm at a bit of a loss to make a small test file that reproduces the error. I've not attached any files as they can all be obtained from svn ci http://svn.dsource.org/projects/core32/trunk/
There are two solutions. One is to use the /p switch on lib.exe to make it larger, see http://www.digitalmars.com/ctg/lib.html The other is to use dmd -lib to create the library. See http://www.digitalmars.com/d/2.0/dmd-windows.html