www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2262] New: -inline breaks -lib library

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

           Summary: -inline breaks -lib library
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: ShadowIce gmx.net


When I try to build a library that uses tango.core.Array and use -inline with
dmd I get the following error when I link that library to my program:
thelib.lib(lib) 
 Error 42: Symbol Undefined
_D3lib33__T7IsEqualTC3lib13TestInterfaceZ7IsEqual6__initZ

I'll include a small example.


-- 
Aug 01 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2262






Created an attachment (id=264)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=264&action=view)
compile with "dmd -lib -ofthelib.lib -inline"


-- 
Aug 01 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2262


ShadowIce gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------

        description|ofthelib.lib -inline"       |





(From update of attachment 264)
compile with "dmd -lib -ofthelib.lib -inline"


-- 
Aug 01 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2262






Created an attachment (id=265)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=265&action=view)
hello.d

compile with "dmd hello.d -L+thelib.lib" to get the error message


-- 
Aug 01 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2262


bugzilla digitalmars.com changed:

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





Fixed dmd 1.035 and 2.019


-- 
Sep 02 2008