From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Gabriel_D=EDaz?= To: "'Fans of the OS Plan 9 from Bell Labs'" <9fans@cse.psu.edu> References: <01c401c76603$5335ac70$f9a10550$@com> <4b60ff3c1f9078ce8becb8a4ba82c103@9netics.com> In-Reply-To: <4b60ff3c1f9078ce8becb8a4ba82c103@9netics.com> Subject: RE: [9fans] compiling error Date: Wed, 14 Mar 2007 08:47:43 +0100 Message-ID: <01ce01c7660d$0e50c1d0$2af24570$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 230b683e-ead2-11e9-9d60-3106f5b1d025 Hello That \n was inserted by this "intelligent" email client sorry. The code compiles unless you uncomment the // print("%f", fabs(a)*FMAX(b,1.0)/c); Thanks Gabi -----Mensaje original----- De: 9fans-bounces+gabidiaz=3Dgmail.com@cse.psu.edu [mailto:9fans-bounces+gabidiaz=3Dgmail.com@cse.psu.edu] En nombre de = Skip Tavakkolian Enviado el: mi=E9rcoles, 14 de marzo de 2007 8:22 Para: 9fans@cse.psu.edu Asunto: Re: [9fans] compiling error > cpu% 8c -FVw t.c > t.c:12 syntax error, last name: maxarg2 i get the error in a different place. % 8c -FVw t.c t.c:7 syntax error, last name: maxarg1 > #define FMAX(a,b) > (maxarg1=3D(a),maxarg2=3D(b),(maxarg1)>(maxarg2)?(maxarg1):(maxarg2)); the problem is the macro. adding a \ to escape \n or putting the macro def on the same line fixes it.