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


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



Relevant Pages

  • Re: Project seetings being ignored in VS2003 - is this a bug?
    ... Application Settings: ... Only other point to note is that my cpp files have extension *.cc (can't see why this would be a prob though - since I changed the filter property for the 'Source Files' folder. ... What I did not is that if I do not choose the 'Empty Project' option, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Virtual serial driver in C/C++
    ... you cannot copy-paste the settings from one project to another. ... > settings are also error prone. ... options for different source files in the SOURCE file. ...
    (microsoft.public.development.device.drivers)
  • Re: Virtual serial driver in C/C++
    ... you cannot copy-paste the settings from one project to another. ... settings are also error prone. ... options for different source files in the SOURCE file. ...
    (microsoft.public.development.device.drivers)
  • Re: Compile java sources inside J2EE component
    ... >>After creating the source files I need ... >>to compile them at runtime, is there a possibility to do so? ... to define his specific CRM model at runtime. ... java classes that represent this model and instances of this model to ...
    (comp.lang.java.programmer)
  • Re: class wizard / conditional compilation
    ... Of course you need the above line if you want to access types in that ... You will add .cpp files to the project. ... compile the files, you must add these to the project. ... > found error, but when I do add these settings per configuration, it ...
    (microsoft.public.vc.mfc)