LNK2022, LNK1255 Errors in C++/CLI Projects

Spread the love

I kept getting LNK2022 and LNK1255 ‘link failed because of metadata’ errors while working on a C++/CLI project.

Apparently, the order in which the include statements appear matters in this type of project. The remedy was to move the “#include <Windows.h>” statement to the very top.

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.