Andreas Richter
March 31st, 1999, 12:12 AM
A very simple question of all, I think. But no idea myself :-(
I have written a cpp-prg which´s source is getting too long now. I have build modules of it and included the necessary .hpp - files in each module. During compilation all is ok, but when the linker starts it bombs me with hundreds of "redefinition of xxx ignored in xxx". This are only warnings, no errors, and the linked prg is ok. Reduciong the warning - level does not change anything. It is not a really problem, but I want to kill this warning - list. If I build a new .hpp - file for each module, I must define each variable with "extern unsigned long..." once more, so that changing of one variable takes changing of 20 .hpp - files.
What must I do?
I have written a cpp-prg which´s source is getting too long now. I have build modules of it and included the necessary .hpp - files in each module. During compilation all is ok, but when the linker starts it bombs me with hundreds of "redefinition of xxx ignored in xxx". This are only warnings, no errors, and the linked prg is ok. Reduciong the warning - level does not change anything. It is not a really problem, but I want to kill this warning - list. If I build a new .hpp - file for each module, I must define each variable with "extern unsigned long..." once more, so that changing of one variable takes changing of 20 .hpp - files.
What must I do?