I declared a constant in a header file const double EARTH_RADIUS=6353; that is imported to various other headers and I got a linker error.
const double EARTH_RADIUS=6353;
L
You can declare in the header, define it in a code file. Simply declare it as
extern const double EARTH_RADIUS;
then in a .m file somewhere (usually the .m for the .h you declared it in)
const double EARTH_RADIUS = 6353;