This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
"multiple definitions" when linking
- From: Gleb Belov <bg at math dot tu-dresden dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 24 Feb 2006 18:20:32 +0100
- Subject: "multiple definitions" when linking
Hello,
when linking I obtain
/home/nm2/belov/prj/COIN/Examples/Csp2/Linux-g_-ffunction-sections_-fdata-sections_-fvtable-gc_--gc-sections/bg_mydebug.o(.data+0x0):bg_src/bg_mydebug.cpp:8:
multiple definition of `outputLevel'
/home/nm2/belov/prj/COIN/Examples/Csp2/Linux-g_-ffunction-sections_-fdata-sections_-fvtable-gc_--gc-sections/bg_mydebug.o(.data+0x0):bg_src/bg_mydebug.cpp:8:
first defined here
i.e. the variable is defined only once in bg_mydebug.cpp line 8 but... ???
I tried G++ 3.3.3 and 4.0.1
Can anyone help?
Gleb