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]

c++ link problems


>
> Help!
> I am trying to compile some c++ code (this is on Mac OS 10.1) and I 
> keep getting messages like these:
> c++ -o fast    -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE 
> -no-cpp-precomp -Wno-long-double -O -I. -I/usr/local/fsl/include -I. 
> -I/usr/local/fsl/include/zimage -L. -L/usr/local/fsl/lib  fast.o 
> mriseg.o imagebase.o image.o palette.o  -lZImageio -lZImagePro -lZMath 
> -lZCommon
>
> /usr/bin/ld: multiple definitions of symbol ___vt_t6ZImage1ZUc
> fast.o private external definition of ___vt_t6ZImage1ZUc in section 
> (__DATA,__coalesced)
> image.o definition of ___vt_t6ZImage1ZUc in section (__DATA,__const)
> /usr/bin/ld: multiple definitions of symbol ___vt_t6ZImage1Zf
> .
> .
> .
> ---------------
>
> I did a grep on the *.o files these errors refer to and I get a match. 
> When I do grep on the corresponding source files I do not get a match. 
> The error list is longer, but it is always the same symbol in question: 
> __vt_t****. It seems that this is something that is created at compile 
> time (because there was no problem creating the *.o files). I don't 
> know c++ so I am very confused here. Is there a way around this?
>
> THANKS!!!
> Zrinka


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