Thread View: net.lang.c++
1 messages
1 total messages
Started by m.terribile
Thu, 27 Feb 1986 06:29
consts and double consts
Author: m.terribile
Date: Thu, 27 Feb 1986 06:29
Date: Thu, 27 Feb 1986 06:29
24 lines
1353 bytes
1353 bytes
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)
,.. .,, ,,, ..,***_*.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads