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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Jordi Sayol <[email protected]> 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: -------

Reply via email to