Re: /RTC1 and /CLR options are incompatible
From: Carl Daniel [VC++ MVP] (cpdaniel_remove_this_and_nospam_at_mvps.org.nospam)
Date: 05/19/04
- Next message: Peteroid: "Re: Passing memory from C++ to C"
- Previous message: Carl Daniel [VC++ MVP]: "Re: VS.NET cannot compile when I use std::map variables"
- In reply to: StuartV: "RE: /RTC1 and /CLR options are incompatible"
- Next in thread: StuartV: "Re: /RTC1 and /CLR options are incompatible"
- Reply: StuartV: "Re: /RTC1 and /CLR options are incompatible"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 May 2004 13:16:25 -0700
StuartV wrote:
> I have a Windows that I originally developed in VC6. I have now
> gotten it to compile and work correctly in VS.Net 2003. So far, so
> good.
>
> Now I want to have it use a managed extension, to call a Web Service.
> I went into my project properties and changed Use Managed Extensions
> to "Yes". I added "#using <mscorlib.dll>" to my stdafx.h file. Now
> when I try to compile the service for Debug, I get:
>
> CWCSSvc Command line error D2016 : '/RTC1' and '/clr' command-line
> options are incompatible
>
> The documentation says that setting Use Managed Extensions to Yes
> should disable any incompatible options. I have verified that
> Properties.C/C++.Code Generation.Basic Runtime Checks is set to
> "Default".
>
> It kind of looks like the problem is that the existing source files
> have individual settings that include /RTC1 that are overriding the
> project-level settings, and those settings are causing this error.
> How can I fix this? Short of editing the settings for every
> individual source file, that is. I want all my source files to share
> the same settings. Having individual compile settings for each file
> will be an impossible maintenance task going forward.
Edit the settings for every file individually. You can probably do this
quickly with a search-and-replace in the project file by opening it in a
text editor.
-cd
- Next message: Peteroid: "Re: Passing memory from C++ to C"
- Previous message: Carl Daniel [VC++ MVP]: "Re: VS.NET cannot compile when I use std::map variables"
- In reply to: StuartV: "RE: /RTC1 and /CLR options are incompatible"
- Next in thread: StuartV: "Re: /RTC1 and /CLR options are incompatible"
- Reply: StuartV: "Re: /RTC1 and /CLR options are incompatible"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|