delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/06/07:10:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <003c01c2e3d9$529e0010$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Bruce Adams [TEPG Sunbury]" <bruadams AT tycoint DOT com>, <cygwin AT cygwin DOT com>
References: <C9150052B112D3119E9E0004ACA6E4370345CACF AT tepg1 DOT tepg DOT co DOT uk>
Subject: Re: Exception: STATUS_PRIVILEGED_INSTRUCTION occurs before main is executed.
Date: Thu, 6 Mar 2003 12:10:05 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Bruce Adams [TEPG Sunbury] wrote:
>> -----Original Message-----
>> From: Max Bowsher [mailto:maxb AT ukf DOT net]
>> Sent: 06 March 2003 11:39
>> To: Bruce Adams [TEPG Sunbury]
>> Cc: cygwin AT cygwin DOT com
>> Subject: Re: Exception: STATUS_PRIVILEGED_INSTRUCTION occurs
>> before main is executed.
>>
>>
>> Bruce Adams [TEPG Sunbury] wrote:
>>>> -----Original Message-----
>>>> From: Brian Ford [mailto:ford AT vss DOT fsi DOT com]
>>>> It is not legal to use gcc for compiling c++ code.  You
>> must use g++.
>>>>
>>> This is not true.
>>> I use gcc -x c++ which should be identical.
>>
>> I believe that g++ will auto-include standard C++ libraries,
>> but gcc -xc++ will not.
>>
>> Max.
>>
> That makes sense.  Presumably I should only use gcc -x c++ if
> I wish to use an alternative library implementation such as STLPort
> which I have been considering (in order to test portability).

Even then, you don't need -xc++ unless you are compiling C++ code in a file
not ending with one of ".C .cc .cxx .cpp .c++".

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019