www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2961] New: some sets of files compiled with (-w -inline -release) cause the linker error /PAGESIZE:16 is too small

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2961

           Summary: some sets of files compiled with (-w -inline -release)
                    cause the linker error /PAGESIZE:16 is too small
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optlink
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: one_mad_alien hotmail.com


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/

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2961


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #1 from Walter Bright <bugzilla digitalmars.com>  2009-05-10
20:04:37 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10 2009