473,386 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

What project property controls the setting of '/RTC1' option?

Hi

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

Thanks

Yifan
Nov 17 '05 #1
5 11545
"Yifan" <an*******@discussions.microsoft.com> wrote in message
news:22**********************************@microsof t.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


Nov 17 '05 #2
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" <an*******@discussions.microsoft.com> wrote in message
news:22**********************************@microsof t.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

Nov 17 '05 #3
"Yifan" <an*******@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
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
Nov 17 '05 #4

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" <an*******@discussions.microsoft.com> wrote in messag
news:5F**********************************@microsof t.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

Nov 17 '05 #5
"Yifan" <an*******@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...

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.


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
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ryno Rijnsburger | last post by:
I am busy packaging our product as a standard Setup project in VS.NET that uses a bunch of merge modules (basically, a merge module for every key infrastructure component in our system). Part...
21
by: | last post by:
Hi, I am setting the NumericUpDown .Value property and the ValueChanged event is NOT being fired. Does this ONLY get fired when I change it on the UI and not programatically? Thanks
0
by: news.microsoft.com | last post by:
I have a collection of pages and user controls in a separate project that I compile and use in a sub folder of a all my projects. This is a collection of re-usable modules that I use on every...
3
by: CSDunn | last post by:
Hello, I currently have an Access 2003 ADP Report/Subreport set up in which I have 12 subreports in a single main report that are located in a group header called 'PermnumHeader' (Permnum would be...
7
by: Arun Kannan | last post by:
Hi We are planning to upgrade a MFC Application (.Exe) to compile on Dot Net Framework. I have opened the application in Visual Studio 2003. I changed the compiler option to /clr. I have set...
7
by: Selden McCabe | last post by:
In Vb6, there was a feature called (I think) watchpoint. You could set it to break on a condition, such as when a control's Visible property was changed. I can't find this sort of breakpoint in...
14
by: Bit byte | last post by:
I am pretty close to the end of my tether at the moment. I have a project which requires some header fies - which happen to be located in another folder (the relative path from where my sources...
0
by: Fred | last post by:
I am using VS2003 and I am using files with myExt to launch my application. The file type was setup in the Setup Project under File Types. This all works well but now I won't to use Notepad to edit...
3
by: nano2k | last post by:
Each form has its ActiveControl property, but no ActiveControlChanged event to signal that the active control has changed (like ParentChanged event). I tried to trick the form by declaring this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.