Bug 2262 – -inline breaks -lib library

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-08-01T12:45:00Z
Last change time
2014-03-01T00:36:11Z
Assigned to
bugzilla
Creator
MauriceG

Attachments

IDFilenameSummaryContent-TypeSize
264lib.dlib.dapplication/octet-stream1719
265hello.dhello.dapplication/octet-stream307

Comments

Comment #0 by MauriceG — 2008-08-01T12:45:44Z
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.
Comment #1 by MauriceG — 2008-08-01T12:47:04Z
Created attachment 264 lib.d
Comment #2 by MauriceG — 2008-08-01T12:47:29Z
Comment on attachment 264 lib.d compile with "dmd -lib -ofthelib.lib -inline"
Comment #3 by MauriceG — 2008-08-01T12:49:03Z
Created attachment 265 hello.d compile with "dmd hello.d -L+thelib.lib" to get the error message
Comment #4 by bugzilla — 2008-09-03T01:36:27Z
Fixed dmd 1.035 and 2.019