D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16516 - Linker Error for ModuleInfo
Summary: Linker Error for ModuleInfo
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-21 00:24 UTC by Jack
Modified: 2022-06-07 16:52 UTC (History)
1 user (show)

See Also:


Attachments
attached file (3.50 KB, application/x-zip-compressed)
2016-09-21 00:24 UTC, Jack
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Jack 2016-09-21 00:24:15 UTC
Created attachment 1615 [details]
attached file

Not exactly sure why this is being caused, but I don't think it should be a linker problem. I get this linker error:

Error 42: Symbol Undefined _D4test6second1t12__ModuleInfoZ 

I've tried to narrow it down as much as possible. Removing any import from any file in import/source/test/ seems to fix the issue.
Comment 1 Richard (Rikki) Andrew Cattermole 2022-06-07 16:52:41 UTC
ModuleInfo is used to detect cyclic detection, so importing is creating a reference to a ModuleInfo instance that simply hasn't been linked in.