Mixed Mode DLL and “/Zl”
I spent 8 hours today debugging a stupid switch set by the VS.NET 2003 AppWizard. I’m trying to wrap some DLLs into a mixed mode DLL for use in some managed code. After laboring with an unmanaged wrapper compiled with /clr, I gave up and tried a “.NET Class Library” AppWizard. Then I added my DLLs, classes, etc. The project compiles correctly and then the linker fails, issuing this error:
LNK2020: unresolved token (0A00002C) ??_7type_info@@6B@
Right. I finally determined that the /Zl switch caused the issue. You will find this setting in Properties->C/C++->Command Line->Additional Options.
Mixed mode DLLs have significant issues in both .NET 1.0 and 1.1.
Leave a Reply
You must be logged in to post a comment.