delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/19/11:23:52

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 'volatile' undeclared from here
Date: 19 Apr 2000 14:51:44 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 28
Message-ID: <8dkh60$sjr$1@nets3.rz.RWTH-Aachen.DE>
References: <fAeL4.1879$_d1 DOT 3770486 AT nnrp4 DOT proxad DOT net> <8dk3aa$m6a$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <9LgL4.1906$D21 DOT 3649551 AT nnrp4 DOT proxad DOT net> <8dkfaj$rk1$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <XljL4.1955$C91 DOT 3755056 AT nnrp4 DOT proxad DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
Mime-Version: 1.0
X-Trace: nets3.rz.RWTH-Aachen.DE 956155904 29307 137.226.32.75 (19 Apr 2000 14:51:44 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 19 Apr 2000 14:51:44 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Alexandre Devaure <Alexandre DOT Devaure AT leroy-autom DOT com> wrote:
> Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> a écrit dans le
> message : 8dkfaj$rk1$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE...
>> Alexandre Devaure <Alexandre DOT Devaure AT leroy-autom DOT com> wrote:
[...]
>> I've never used or seen anyone use inline assembly in C++ programs,
>> but even so, one of the things you should try is to replace the
>> keywords by their ANSI standard-blessed equivalents,
>>
>> __asm__ __volatile__ ("pushf");
>>

> I tried and the error message was the same.

That's a bit strange. I compiled your code (as a .cc file, directly,
as you hadn't provided the main source file, nor any other module), on
a Linux installation of gcc-2.95.2, and it accepted it without any
complaints. Which means this is either a problem with the DJGPP build
of gcc-2.95.2, or the actual problem is elsewhere in your program,
i.e.  in those parts you didn't show.

Could you try and cut down the source to the absolute minimum that
still reports that compiler error, and post the result?


-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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