<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body>
Swapna kv wrote:<br>
<blockquote cite="midSea1-F114xwdMwHBoq100045284@hotmail.com"
 type="cite">&nbsp;There was another error with the declaration
  <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static const int DEFAULT_QUADRANT_SEGMENTS =6
  <br>
Don't know why. But managed it with a #define.
  <br>
  <br>
</blockquote>
The constant declaration <br>
<blockquote><code>class A</code><br>
  <code>{</code><br>
  <code>&nbsp;&nbsp;&nbsp; static const int MY_CONSTANT = 1;</code><br>
  <code>};</code><br>
</blockquote>
is very Java-like. I did not know it would compile with C++ (I does
not, in fact, with VC6, but I guess it does with the compiler GEOS team
uses...). I indeed forgot to mention in my previous mail that I
modified all constant declarations as follow:<br>
In .h file:<br>
<blockquote><code>class A</code><br>
  <code>{</code><br>
  <code>&nbsp;&nbsp;&nbsp; static const int MY_CONSTANT;</code><br>
  <code>};</code><br>
</blockquote>
In .cpp file:<br>
<blockquote><code>const int A::MY_CONSTANT=1;<br>
  </code></blockquote>
That's the way it is coded usually in C++ (do not use a #define, it's
so, well, old-fashioned).<br>
<br>
<br>
Regards,<br>
<br>
Herv&eacute;<br>
<code></code>
</body>
</html>