Mail Archives: djgpp/2001/07/19/11:25:18
Message-ID: | <000a01c11066$9fe0c120$0201a8c0@isp>
|
From: | "josep lluis" <joseplluis DOT vaquer AT wol DOT es>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Error: Parse error before ':' HELP
|
Date: | Thu, 19 Jul 2001 17:22:29 +0200
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 5.00.2314.1300
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300
|
Reply-To: | djgpp AT delorie DOT com
|
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C11077.630C7D00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello!
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
fld %2\n=20
fwait"
:
: "g" (x), "g" (y), "g" (retorn)
);
When i compile this error is reported:
: parse error before ':'=20
Anybody can help me?
Thanks in advanced,
Susana Moreno
------=_NextPart_000_0007_01C11077.630C7D00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to include a litle asm code =
in a .cpp=20
archive:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =
double=20
x;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
double=20
y;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
double=20
retorn;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
_asm__volatile_("</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
=20
fld %0\n</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
=20
fld %1\n</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
=20
fpatan\n</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
=20
fld %2\n </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
=20
fwait"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
=20
:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
=20
: "g" (x), "g" (y), "g"=20
(retorn)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
=20
);</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>When i compile this error is=20
reported:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
:=20
parse error before ':' </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Anybody can help me?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advanced,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
=20
=
=20
Susana Moreno</FONT></DIV></BODY></HTML>
------=_NextPart_000_0007_01C11077.630C7D00--
- Raw text -