This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]