Re: Microsoft & GNU c++ compiler

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: red floyd (no.spam_at_here.dude)
Date: 07/09/04


Date: Fri, 09 Jul 2004 09:39:21 -0700

Jason Winnebeck wrote:

> Could one not use pragmas to turn on extensions in your "master" (PCH)
> header file when you include the SDK stuff, then turn them back on
> afterwards?
>
> Jason
>
> red floyd wrote:
>
>> Bronek Kozicki wrote:
>> (pity you must use extensions in order to compile Platform
>>
>>> SDK headers)
>>
>>
>>
>> Yeah that would be a nice thing to add either in VS2K5 or in
>> VS2K3SP1... something that specifies Standards conformance PLUS
>> extended keywords. Currently the only Standards conformance you can
>> turn on and still compile PSDK headers is for loop scope conformance.

As Bronek commented (in the immediately preceding post), the only pragma
is forScope, which is for loop variable scope compliance. There's no
pragma to toggle /Za and /Ze within the code (unlike Borland, which
pretty much allows you to toggle any option via pragma)



Relevant Pages

  • Re: include file question
    ... Where did you read that #pragma once is obsolete? ... because it suggests that what you need is some kind of weird compiler hack to make your ... inside the header file to prevent multiple execution of the contents. ... documentation about Objective C, which is a language which is NOT the C++ language, has ...
    (microsoft.public.vc.mfc)
  • Re: Porting from VC6, Class Wizard Comments
    ... That is not consistent with the specifications of #include, ... Why should we have to put #pragma once in every header file. ... beyond (I never installed VS5 anywhere because it had so many other ...
    (microsoft.public.vc.mfc)
  • Re: include file question
    ... Where did you read that #pragma once is obsolete? ... inside the header file to prevent multiple execution of the contents. ... Including the same header file more than once within the same cpp file will usually produce compile errors. ...
    (microsoft.public.vc.mfc)
  • Re: Bluetooth Programming
    ... Today i tried using BluetoothFindFirstDevice() and ... #pragma comment ... Is there anything related to the header file bein c file or c++ file or PSDK ...
    (microsoft.public.dotnet.languages.vc)