delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/19/11:12:13

Sender: susana AT pop3-3 DOT worldonline DOT es
Message-ID: <3B56C3D8.2A9E81F3@wol.es>
Date: Thu, 19 Jul 2001 13:26:16 +0200
From: Susana Moreno <susana DOT moreno AT wol DOT es>
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.17-patillas i686)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Error: Parse error before ':'
Reply-To: djgpp AT delorie DOT com

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 ':'

Thanks in advance,

                    Susana Moreno

- Raw text -


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