You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running nightly 01/10/2025. Consider project A (a console application) that depends on project B (a library). First, here's project B (the library):
As shown, project B has a class MyClass with an empty extern constructor. Project A extends MyClass to provide an implementation for that constructor, but the project fails to compile (with error LNK2019: unresolved external symbol).
Adding a parameter to the constructor results in a successful compilation:
publicclassMyClass{// Other relevant code is updated to also account for this parameter.publicexternthis(int32value);}
Interestingly, adding MyClass destructors to both projects also results in a successful compilation, even with the constructor remaining empty. Adding a destructor to only one project doesn't cut it.
// In project A...publicextensionMyClass{publicoverridethis(){}
public ~this(){}}// In project B...publicclassMyClass{publicexternthis();
public ~this(){}}
The text was updated successfully, but these errors were encountered:
I'm running nightly 01/10/2025. Consider project
A
(a console application) that depends on projectB
(a library). First, here's projectB
(the library):Second, here's project
A
(the application):As shown, project
B
has a classMyClass
with an empty extern constructor. ProjectA
extendsMyClass
to provide an implementation for that constructor, but the project fails to compile (with errorLNK2019: unresolved external symbol
).Adding a parameter to the constructor results in a successful compilation:
Interestingly, adding
MyClass
destructors to both projects also results in a successful compilation, even with the constructor remaining empty. Adding a destructor to only one project doesn't cut it.The text was updated successfully, but these errors were encountered: