From: Matt Leotta <matt.leotta@gm...> - 2007-10-25 13:26:01
Dear VXL Developers (Tim Cootes in particular):
I'm trying to build VXL with gcc 4.0.1 in Mac OS X 10.4.10. I know we
don't have any dashboard builds for OS X, but I really don't see why
this particular problem would not show up on other similar platforms
(like FreeBSD with gcc 4.0.4).
The error is in linking contrib/mul/mbl/tests/mbl_test_all. I get
several errors similar to the following:
/usr/bin/ld: multiple definitions of symbol
The reason is the following template instantiation is found in both
test_clusters.cxx and test_cluster_tree.cxx:
These files are linked together to make mbl_test_all.
It seems the solution would be to move the template instantiations
into mbl/Templates or make mbl/tests/Templates if these instantiations
are really only needed for testing. However, I'm wondering if maybe
there is some compiler flag I should be setting to tell the linker to
ignore duplicate instantiations. Any Ideas?
From: Peter Vanroose <peter_vanroose@ya...> - 2007-10-28 10:57:49
Since one of the template arguments is a user-defined class, just
renaming that class will solve the problem, I believe.
I've committed this change to the CVS repository; let's see if it works...
Låna pengar utan säkerhet. Jämför vilkor online hos Yahoo!
Get latest updates about Open Source Projects, Conferences and News.