www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/19/12:23:32

Date: Thu, 19 Jul 2001 19:22:43 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Susana Moreno <susana DOT moreno AT wol DOT es>
cc: djgpp AT delorie DOT com
Subject: Re: Error: Parse error before ':'
In-Reply-To: <3B56C3D8.2A9E81F3@wol.es>
Message-ID: <Pine.SUN.3.91.1010719192144.3894B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 19 Jul 2001, Susana Moreno wrote:

> I'm trying to include a litle asm code in a .cpp archive.
> 
> double x;
> double y;
> double retorn;
> 
> _asm__volatile_("
>                                  fld %0\n
>                                  fld %1\n
>                                  fpatan\n
>                                  fstd %2\n
>                                  fwait
>                                  :
>                                  :  "g" (x), "g" (y),  "g" (retorn)
>                                 );
> 
> When i compile it, this error is reported:
> 
> 
>         Parse error before ':'

You need to close the quoted string after fwait:

                                  fwait"

- Raw text -


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