I am trying to use the marshalling library in my C++/CLI project. When compiled with #include <msclr/marshal.h>
I get the error error C2872: 'IServiceProvider' : ambiguous symbol
. Most of the resolutions seems to be suggesting moving #include <windows.h>
like the one here -> Ambiguous references, but I dont have those includes. All I have is:
using namespace System;
using namespace System::Configuration;
using namespace std;
#include <msclr/marshal.h>
How do I debug this issue ?