C1190 Error

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;
}
 
M

Marcus Heege

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
 
G

Guest

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
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top