Thanks to all who replied.I found a different solution, which is by declaring the variables static. Find attached solutions.
But still the C parser (or what is it?) did throw up an error with the const variable, which C++ did not. @Andre: Is there any I should not declare a variable in a header file if I want that variable to be visible to many cpp files? I can avoid writing many "extern" lines by using static. Thanks again, Shriramana.
Attachment:
multiple-declaration-problem-solutions.tar.gz
Description: application/gzip