← Back to team overview

kicad-developers team mailing list archive

round() function

 

--2-0224879397-6248960677=:5 Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

Trying to start using VC++ 2005 Express edition to compile KiCAD.

When trying to compile the files in the common directory, there's a file
called "trigo.cpp" who's using the function round().

However, such function is unknown to VC++.

Is there an alternative for this? If so, then one could use the
compiler switch __WINDOWS__ to switch between Windows and non-Windows
targets.

Also the following construnction is unknown to VC++:

#define EXCHG(a,b) { typeof(a) __temp__ =3D (a); (a) =3D (b); (b) =3D
__temp__; }

The compiler can't handle "typeof(a) __temp__".

This is used frequently into the file gr_basic.cpp, indirectly via the
CLIP_LINE() macro.

Best rgds,

--Geert

 --2-0224879397-6248960677=:5 Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,<br><br>Trying to start using VC++ 2005 Express edition to compile KiCAD=
.<br><br>When trying to compile the files in the <i>common </i>directory, t=
here's a file called "trigo.cpp" who's using the function <b>round()</b>.<b=
r><br>However, such function is unknown to VC++.<br><br>Is there an alterna=
tive for this?&nbsp; If so, then one could use the compiler switch __WINDOW=
S__ to switch between Windows and non-Windows targets.<br><br>Also the foll=
owing construnction is unknown to VC++:<br><br><b>#define EXCHG(a,b) { type=
of(a) __temp__ =3D (a); (a) =3D (b); (b) =3D __temp__; }</b><br><br>The com=
piler can't handle "typeof(a) __temp__".<br><br>This is used frequently int=
o the file gr_basic.cpp, indirectly via the CLIP_LINE() macro.<br><br><br>B=
est rgds,<br><br>--Geert<br>
 --2-0224879397-6248960677=:5--