[Issue 11543] New: multiple definition of std.regex with shared library

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 18 12:07:14 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11543

           Summary: multiple definition of std.regex with shared library
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: g.sayol at yahoo.es


--- Comment #0 from Jordi Sayol <g.sayol at yahoo.es> 2013-11-18 12:07:11 PST ---
test.d
---
import std.net.curl;

void main()
{
     char[] a = get("http://dlang.org/index.html");
}
---

If liking against phobos shared library, dmd v2.064.2 fails:

$ dmd -L-lcurl -defaultlib=libphobos2.so -run test.d
Fatal Error while loading '/usr/lib/x86_64-linux-gnu/libphobos2.so.0.64':
    The module 'std.regex' is already defined in 'test'.
--- killed by signal 11

No problem if static linking.
No problem with dmd v2.063.2 (static and shared linking).

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


More information about the Digitalmars-d-bugs mailing list