public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* "multiple definitions" when linking
@ 2006-02-24 17:20 Gleb Belov
  0 siblings, 0 replies; only message in thread
From: Gleb Belov @ 2006-02-24 17:20 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-24 17:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-24 17:20 "multiple definitions" when linking Gleb Belov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).