[pkg-boost-devel] Bug#382352: gpp 4.1 does not compile boost::date_time

Jens Gottstein Jens.Gottstein at gmx.de
Thu Aug 10 14:23:30 UTC 2006


Package: libboost-date-time-dev
Version: 1.33.1-4

when compiling (linking) a multifile project which includes
"boost/date_time/posix_time/posix_time.hpp" gpp 4.1 complains:

multiple definition of
`_ZN5boost9date_time18parse_match_resultIT_E11PARSE_ERRORE'



I append a small test project which shows the error.



I am using Debian testing.


$ g++-4.1 -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,fortran,objc,obj-c++,ada,treelang
--prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.1-1.4.2.0/jre
--enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060613 (prerelease) (Debian 4.1.1-5)
-------------- next part --------------
all : test33 test40 test41

test33 : test.cpp test2.cpp
	 g++-3.3 -o test33 test.cpp test2.cpp

test40 : test.cpp test2.cpp
	 g++-4.0 -o test40 test.cpp test2.cpp

test41 : test.cpp test2.cpp
	 g++-4.1 -o test41 test.cpp test2.cpp

clean :
	rm test33 test40 test41 *~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c++src
Size: 114 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20060810/5ce170cd/test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.cpp
Type: text/x-c++src
Size: 110 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-boost-devel/attachments/20060810/5ce170cd/test2.cpp


More information about the pkg-boost-devel mailing list