D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2961 - some sets of files compiled with (-w -inline -release) cause the linker error /PAGESIZE:16 is too small
Summary: some sets of files compiled with (-w -inline -release) cause the linker error...
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: tools (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-10 15:35 UTC by Mike Wynn
Modified: 2015-06-09 04:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Mike Wynn 2009-05-10 15:35:28 UTC
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/
Comment 1 Walter Bright 2009-05-10 20:04:37 UTC
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