LNK2022, LNK1255 Errors in C++/CLI Projects

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.

Leave a Reply

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

%d bloggers like this: