Thank you for the note Alpar. I will keep that in mind.<br><br><div class="gmail_quote">On Fri, Nov 26, 2010 at 12:16 AM, Alpár Jüttner <span dir="ltr"><<a href="mailto:alpar@cs.elte.hu">alpar@cs.elte.hu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<div class="im">><br>
> My bad. I had EPSILON defined in my code too, and hence the error.<br>
> It's alright now.<br>
<br>
</div>Using #define for defining constants is always a source of danger, for<br>
it overrides everything, even the local variables. Instead, use<br>
<br>
const double EPSILON=1e-3;<br>
<br>
(just like lemon/graph_to_eps.h does), and you won't have problems like<br>
that.<br>
<br>
If you _must_ use define, then always add a prefix that makes your name<br>
different from any other with a high probability, like<br>
<br>
#define ARUN_EPSILON 1e-5<br>
<br>
In addition, it is a good habit to do all these defines _after_ the<br>
#include lines.<br>
<br>
But once again, you will very rarely need it (and _never_ for a single<br>
constant definition like that).<br>
<br>
Regards,<br>
Alpar<br>
<div class="im"><br>
<br>
><br>
> Thanks,<br>
><br>
> On Thu, Nov 25, 2010 at 8:09 PM, Arun Reddy Kandoor<br>
> <<a href="mailto:karunreddy30@gmail.com">karunreddy30@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
><br>
> Am facing a compilation error when I include #include<br>
> <lemon/graph_to_eps.h>.<br>
><br>
><br>
> The error is:<br>
> usr/local/include/lemon/graph_to_eps.h: In member function<br>
> ‘void lemon::GraphToEps<T>::run()’:<br>
> /usr/local/include/lemon/graph_to_eps.h:665: error: expected<br>
> unqualified-id before numeric constant<br>
><br>
><br>
> Any one else had this error before? Any ideas please.<br>
><br>
><br>
> Thanks,<br>
> --<br>
> Arun<br>
><br>
><br>
><br>
><br>
> --<br>
> Arun<br>
><br>
</div>> _______________________________________________<br>
> Lemon-user mailing list<br>
> <a href="mailto:Lemon-user@lemon.cs.elte.hu">Lemon-user@lemon.cs.elte.hu</a><br>
> <a href="http://lemon.cs.elte.hu/mailman/listinfo/lemon-user" target="_blank">http://lemon.cs.elte.hu/mailman/listinfo/lemon-user</a><br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Arun <br>