Yes I did

One more finding
I am using C. Also using constants are allowed as per the new C standard

The other thing i just found
is that if i use #defines instead of const int things work just fine

Is there any diff between the C and C++ constants that is causing problems.
I have also used extern "c"


Thanks