Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 1995 13:32:36 -0400
From:      Pierre SARRAZIN <sarrazip@CS.McGill.CA>
To:        FreeBSD-questions@freefall.cdrom.com
Subject:   g++ and templates
Message-ID:  <199504121732.NAA21052@maggie.cs.mcgill.ca>

next in thread | raw e-mail | index | archive | help
Hi. I'm running FreeBSD 2.0-RELEASE and I'm trying to compile a C++
program that I wrote. The source contains no g++-specific directives,
and I would like it to stay that way, if possible. The problem is that
template definitions appear more than once in the object files. Isn't
there a way to tell g++ or the linker to ignore cases like this? The
following are some error messages from g++:

g++ -g -O6 -D_Xlib_Implementation_ -I/usr/X11R6/include -c fastrot.cc
	[...]
g++ -g -O6 -D_Xlib_Implementation_ -I/usr/X11R6/include -c xlibdisp.cc
g++ -g -O6 -D_Xlib_Implementation_ -I/usr/X11R6/include -o fastrot fastrot.o matrix.o trad.o zeroes.o altform.o proposed.o figure.o threedim.o twodim.o xlibdisp.o -lXext -lX11 -lm
queueptr.h:72: Definition of symbol `___t8QueuePtr1Z5Point20PolitiqueDestruction' (multiply defined)
queueptr.h:79: Definition of symbol `__$_t8QueuePtr1Z5Point' (multiply defined)
listeptr.h:85: Definition of symbol `_cardinal__Ct8ListePtr1Z5Point' (multiply defined)
	[...]

Pierre Sarrazin <sarrazip@cs.mcgill.ca> [Montreal]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504121732.NAA21052>