Spence Green

التكرار يعلم الحمار

I work at Lilt. In addition to computers and languages, my interests include travel, running, and scuba diving. more...

Mixed Mode DLL and “/Zl”

with 581 comments

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.

Written by Spence

June 30th, 2005 at 5:16 pm

Posted in .NET

Leave a Reply

You must be logged in to post a comment.