C1190 Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone please tell me why I'm getting this error, I'm using the beta 2
for 2005 C++. This also happens with VC++ version 2002. Please help me.
Here is my code.

#include "stdafx.h"
#using <mscorlib.dll>
using namespace System;


int _tmain()
{
Console::WriteLine("hello world.");
return 0;
}
 
As the compiler error says

"C1190: managed targeted code requires a '/clr' option"

Go to the project properties and set the option "Common language runtime
support" in the "General" options.

Marcus
 
Thanks that helped. I was wondering, do you know how to fix that problem
with the 2002 version? if not that's fine, atleast I have 2005. THANKS AGAIN
 
When I get this message it also states that I need '#using <mscorlib.dll>' in
the error message. When I go to properties - general option I'm not finding
the option "Common language runtime support". Would you please help me?
 
Back
Top