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
Project A (a console application that depends on B) looks like this:
usingB;namespaceA{static{publicstaticvoidMain(){// Fails to compile with error LNK2019letapp=newApplication();}}}namespaceB{publicextensionStruct{publicstaticoverridevoid Extern(){}}}
This code fails to compile with error LNK2019, stating that Struct.Extern is an unresolved external symbol. Modifying Main to call Struct.Extern directly compiles successfully.
Consider two projects
A
andB
. ProjectB
(a library) is shown below:Project
A
(a console application that depends onB
) looks like this:This code fails to compile with error
LNK2019
, stating thatStruct.Extern
is an unresolved external symbol. ModifyingMain
to callStruct.Extern
directly compiles successfully.The text was updated successfully, but these errors were encountered: