> Could any one tell me what project property controls
> the setting of '/RTC1' option? Now I have a project
> which has this build error "Command line error D2016 :
> '/RTC1' and '/clr' command-line options are incompatible".
> But when I view the .vcproj file, I cannot find the '/RTC1' option.
If you look up 'RTC' in MSDN you will find this:
<quote>
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Setting
Visual C++ Project Properties.
Click the C/C++ folder.
Click the Code Generation property page.
Modify one or both of the following properties: Basic Runtime Checks or
Smaller Type Check.
</quote>
Regards,
Will
Yifan - 09 Feb 2004 19:46 GMT
Thanks for the reply. For C/C++ Code Generation, I set the Smaller Type Check to No. And I have tried every option in the Basic Runtime Checks, and they all give me error of confliction with /clr.
The following is my C/C++ > Command Line > All Options:
/Od /I "../../sdk/AE/6.0/Headers/AS" /I "../../sdk/AE/6.0/Headers/ADM" /I "../../sdk/AE/6.0/Headers" /I "../../sdk/AE/6.0/Util" /I "../../xml/xerces-c2_4_0/include" /I "../../sdk/AAF/AAFWinSDK/include" /I "../../sdk/AAF/Utilities/Include" /AI ".\Debug" /D "MSWindows" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "AEIOAAF_EXPORTS" /D "OM_ENABLE_DEBUG" /D "PEI_INTERNAL" /D "_WINDLL" /FD /EHsc /MDd /GS /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug/" /W3 /nologo /c /Zi /clr
I got error of "Command line error D2016 : '/RTC1' and '/clr' command-line options are incompatible". Any idea why? Thanks.
Yifan
----- William DePalo [MVP VC++] wrote: -----
"Yifan" <anonymous@discussions.microsoft.com> wrote in message
news:22F06D4E-E4A1-485F-9948-C4906047D2A9@microsoft.com...
> Could any one tell me what project property controls
> the setting of '/RTC1' option? Now I have a project
> which has this build error "Command line error D2016 :
> '/RTC1' and '/clr' command-line options are incompatible".
> But when I view the .vcproj file, I cannot find the '/RTC1' option.
If you look up 'RTC' in MSDN you will find this:
<quote>
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Setting
Visual C++ Project Properties.
Click the C/C++ folder.
Click the Code Generation property page.
Modify one or both of the following properties: Basic Runtime Checks or
Smaller Type Check.
</quote>
Regards,
Will
William DePalo [MVP VC++] - 09 Feb 2004 20:27 GMT
> Thanks for the reply. For C/C++ Code Generation, I
> set the Smaller Type Check to No.
In a project of mine I have
1) "Smaller Type Check" set to "No"
2) "Basic Runtime Checks" set to "Default"
3) "Use Managed Extensions" set to "Yes"
Does that combination work for you?
Regards,
Will
Yifan - 09 Feb 2004 20:46 GMT
1) "Smaller Type Check" set to "No
2) "Basic Runtime Checks" set to "Default
3) "Use Managed Extensions" set to "Yes
No, this doesn't work for me. I got the error "Command line error D2016 : '/RTC1' and '/clr' command-line options are incompatible"
Because I want to use function UrlDecode(), I have
#using <mscorlib.dll
#using <System.dll
#using <System.Web.dll
using namespace System
using namespace System::Web
in a C++ file
Yifa
----- William DePalo [MVP VC++] wrote: ----
"Yifan" <anonymous@discussions.microsoft.com> wrote in messag
news:5F25DC4F-4CF4-4142-BF04-BB8151CB079F@microsoft.com..
> Thanks for the reply. For C/C++ Code Generation,
> set the Smaller Type Check to No
In a project of mine I hav
1) "Smaller Type Check" set to "No
2) "Basic Runtime Checks" set to "Default
3) "Use Managed Extensions" set to "Yes
Does that combination work for you
Regards
Wil
William DePalo [MVP VC++] - 09 Feb 2004 23:24 GMT
> 1) "Smaller Type Check" set to "No"
> 2) "Basic Runtime Checks" set to "Default"
[quoted text clipped - 10 lines]
>
> in a C++ file.
Then I'm sorry that I can't help you. The diagnostic is telling you that you
can't have both the managed extensions option ( /clr ) and the others that
you'd like to have.
Regards,
Will
Hi.
You must invidually set the 'Basic Runtime Checks' option to each and every cpp-file, from their 'Configuration properties - C/C++ - Code generation' property pages to value 'Default'. So, it is not enough to do this for the whole projects properties. Luckily, you can select all the cpp-files at the same time from the Solution Explorer-tab and apply the changes.
Indeed it's quite frustrating that the project properties does not do this automatically. :)
Hopefully this does the job for you.
Cheers, Markus