Re: fatal error building my code



"Nick" <Nick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6C536465-E879-4C53-B534-504198B46D64@xxxxxxxxxxxxxxxx
The following fatal error occurred when i ran a simple program with
System.Data.

fatal error C1190: managed targeted code requires '#using <mscorlib.dll>'
and '/clr' option.

i put #using <mscorlib.dll> in the code but i am not sure how to include
/clr. please help! Thank you!

/clr is the command line argument for the common language runtime. If you
open the project properties and select Configuration Properties->General.
You will see the Common Language Runtime support option in the list. Just
select the support and it will be added for you.

--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.


.



Relevant Pages

  • Re: fatal error C1190 in VC++ .NET
    ... > /clr switch. ... > fatal error C1190: managed targeted code requires '#using ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)
  • Help with error C1190
    ... I'm developing a new filter and when I have written it I get the ... fatal error C1190: managed targeted code requires a '/clr' option ... When I double clic in the error it goes to the line after #pragma once ...
    (microsoft.public.win32.programmer.directx.video)