From: Hans-Bernhard Broeker 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: <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> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 wrote: > Hans-Bernhard Broeker a écrit dans le > message : 8dkfaj$rk1$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE... >> Alexandre Devaure 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.