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++ / February 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yifan - 09 Feb 2004 17:11 GMT
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
William DePalo [MVP VC++] - 09 Feb 2004 17:20 GMT
> 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
Markus Eräpolku - 01 Feb 2005 07:39 GMT
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

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.