D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15834 - Import of std.stdio (std.stdiobase) in dll fails
Summary: Import of std.stdio (std.stdiobase) in dll fails
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P3 normal
Assignee: No Owner
URL:
Keywords: dll
Depends on:
Blocks:
 
Reported: 2016-03-26 21:09 UTC by Richard
Modified: 2024-12-13 18:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Richard 2016-03-26 21:09:50 UTC
If you import module from an external dll which has a circular reference on 
"import std.stdio;" the build will fail;


Seems a problem with:

module std.stdiobase;

extern(C) void std_stdio_static_this();

shared static this()
{
    std_stdio_static_this();
}

If i comment out the "shared static this()" the build runs ok.
Comment 1 dlangBugzillaToGithub 2024-12-13 18:47:15 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19108

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB