Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

fatal error C1190 in VC++ .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
karthik.t@gmail.com - 04 Jul 2005 17:28 GMT
Hello,

I am gettin a fatal error C1190 when I try to compile the code and run
it. Could anyone provide a solution for that? I guess I need to set the
/clr switch.

Here is the error:

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

It points to the syntax on code:

#using <mscorlib.dll>

<Yeah the third line of my code!!!!> ;-)

Would appreciate if anyone cud provide a solution for this! :-) Thanks
a much!

Karthik
William DePalo [MVP VC++] - 04 Jul 2005 19:58 GMT
> it. Could anyone provide a solution for that? I guess I need to set the
> /clr switch.

Yes.

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

From the menu, navigate to this setting

   Project->Properties->Configuration Properties->General->Use Managed
Extension

and set it to "yes"

Regards.
Will
karthik.t@gmail.com - 04 Jul 2005 20:55 GMT
Thnx a much Will!!! Solved it in a jiffy!

But now.. the problems extends to "RTC and clr incompatible"
issue...:((....

Error D2016: '/RTC1' and '/clr' command-line options are incompatible

Any thoughts on that?

Thnx again!

Cheers!
Karthik
William DePalo [MVP VC++] - 04 Jul 2005 21:34 GMT
> Thnx a much Will!!!

You are welcome.

> Solved it in a jiffy!

I try not to give bogus advice. :-)

> But now.. the problems extends to "RTC and clr incompatible"
> issue...:((....
>
> Error D2016: '/RTC1' and '/clr' command-line options are incompatible
>
> Any thoughts on that?

Yup. Navigate to

   Project->Properties->C++->Code Generation->Basic Runtime Checks

and choose a setting that works. :-)

If, like me, you don't have strong feelings about how the compiler generates
the code and the runtime checks, then just choose the correct project type
from the start. That is if you tell the IDE that you are building a managed
application then you wouldn't normally have to tweak the settings.

Will
karthik.t@gmail.com - 05 Jul 2005 00:08 GMT
Will! thnx again! :-)

I tried all the settings.. but dunno why I am getting the following
error..

Command line error D2016 : '/YXStdAfx.h' and '/clr' command-line
options are incompatible

Again... Any thoughts???

Thnx for taking the trouble! :-)

Karthik
William DePalo [MVP VC++] - 05 Jul 2005 00:31 GMT
> Will! thnx again! :-)

You are welcome, still. :-)

> I tried all the settings.. but dunno why I am getting the following
> error..
[quoted text clipped - 3 lines]
>
> Again... Any thoughts???

This is a different error. The IDE is complaining about the pre-compiled
header settings. You can either turn off the header pre-compilation option
or, better yet IMO, start a new .Net project so that the default IDE
settings will be compatible with your project.

Regards,
Will
karthik.t@gmail.com - 05 Jul 2005 00:46 GMT
gr8!! I'll try that and see if it compiles...:-)... probably get back
later today!

Happy 4th of July if you are in the territory of Uncle Sam!!

Cheers!
Karthik

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.