Installing MSVC2015 Correctly for C++/CLI in CodeBlocks
I wanted to try learning C++/CLI, but as I don't have Visual Studio, I decided to get the compiler for CodeBlocks itself. I downloaded VS2015 BuldTools, ensured a valid install of all the components and the .NET Framework 4.6.1, and then completed the setup of the comiler's include folders and libraries. I then added the /clr directive in the Other Compiler Options. I then tried to compile the following code : #using <mscorlib.dll> using namespace System; int main(array<String^>^args) { Console::WriteLine("Hello world"); return 0; } But I got a single error - LINK||fatal error LNK1104: cannot open file 'MSCOREE.lib'| How to correct this error? I tried searching the net, but could not find any solution. Perhaps it may be that I missed some library folder, but these are what I have included under linker settings : C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib C:\Program Files (x86)\Windows Kits\8.1\Lib C:\Program Files (x86)\Windows Kits\10\Lib C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A Did I miss some folder? I am not sure...