From: "Alexandre Devaure" Newsgroups: comp.os.msdos.djgpp References: <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> <8dkh60$sjr$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <8dml61$9co$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <8dn0q3$dvv$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> Subject: Re: 'volatile' undeclared from here Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: <8rEL4.2087$n%1.2970728@nnrp6.proxad.net> Date: Thu, 20 Apr 2000 14:25:08 GMT NNTP-Posting-Host: 194.51.236.59 X-Complaints-To: abuse AT proxad DOT net X-Trace: nnrp6.proxad.net 956240708 194.51.236.59 (Thu, 20 Apr 2000 16:25:08 CEST) NNTP-Posting-Date: Thu, 20 Apr 2000 16:25:08 CEST Organization: Guest of ProXad - France To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker a écrit dans le message : 8dn0q3$dvv$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE... [...] > > Summing it all up: you can work around the problem by simply > *removing* the volatile keyword, I think. Its desired effect is > granted anyway, no matter if it's written out or not, in your case. > > [...] > > int PutSecure(const bidon& Value) > > { > > __asm__ __volatile__("pushf"); > > -- > Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) > Even if all the snow were burnt, ashes would remain. > Thank you very much Hans-Bernhard. I'll remove the volatile keyword of my C++ code. Alex