[net.lang.c++] consts and double consts

mat@mtx5a.UUCP (m.terribile) (02/27/86)

I have a .h file with two consts:

	const	a = 10;

	const double	b = 12.5;

The second one gives me a multiply defined symbol from the linker when I
include the .h in two .c's .  The first does not.

It appears that double consts are handled by cfront as initialized variables.
That rules out the usage I have described above.

I tried omitting the ``= 12.5'' but cfront told me that the missing value was
no good.

	How do I get this const declared in a .h for two files when cfront
and the linker seem to insist on working at cross purposes?
-- 

	from Mole End			Mark Terribile
		(scrape .. dig )	mtx5b!mat
					(Please mail to mtx5b!mat, NOT mtx5a!
						mat, or to mtx5a!mtx5b!mat)
    ,..      .,,       ,,,   ..,***_*.