Thread overview
[Issue 2262] New: -inline breaks -lib library
Aug 01, 2008
d-bugmail
Aug 01, 2008
d-bugmail
Aug 01, 2008
d-bugmail
Aug 01, 2008
d-bugmail
Sep 03, 2008
d-bugmail
August 01, 2008
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.


-- 

August 01, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2262





------- Comment #1 from ShadowIce@gmx.net  2008-08-01 12:47 -------
Created an attachment (id=264)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=264&action=view)
compile with "dmd -lib -ofthelib.lib -inline"


-- 

August 01, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2262


ShadowIce@gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
    Attachment #264|compile with "dmd -lib -    |lib.d
        description|ofthelib.lib -inline"       |




------- Comment #2 from ShadowIce@gmx.net  2008-08-01 12:47 -------
(From update of attachment 264)
compile with "dmd -lib -ofthelib.lib -inline"


-- 

August 01, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2262





------- Comment #3 from ShadowIce@gmx.net  2008-08-01 12:49 -------
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


-- 

September 03, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2262


bugzilla@digitalmars.com changed:

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




------- Comment #4 from bugzilla@digitalmars.com  2008-09-03 01:36 -------
Fixed dmd 1.035 and 2.019


--