I found a sloution to getting ft 1.1 to build with gcc4.0.1 on fedora4
it seems that template<> needs to be stated in the function ( see changlog for gcc4)
For staroctree.cpp starting at line 64
Code: Select all
// In testing, changing SPLIT_THRESHOLD from 100 to 50 nearly
// doubled the number of nodes in the tree, but provided only between a
// 0 to 5 percent frame rate improvement.
template<>
unsigned int DynamicStarOctree::SPLIT_THRESHOLD = 75;
template<>
DynamicStarOctree::LimitingFactorPredicate* DynamicStarOctree::limitingFactorPredicate = starAbsoluteMagnitudePredicate;
template<>
DynamicStarOctree::StraddlingPredicate* DynamicStarOctree::straddlingPredicate = starOrbitStraddlesNodesPredicate;
template<>
DynamicStarOctree::ExclusionFactorDecayFunction* DynamicStarOctree::decayFunction = starAbsoluteMagnitudeDecayFunction;
and the same goes for dsooctree.cpp starting at line 58
Code: Select all
template <>
unsigned int DynamicDSOOctree::SPLIT_THRESHOLD = 10;
template <>
DynamicDSOOctree::LimitingFactorPredicate* DynamicDSOOctree::limitingFactorPredicate = dsoAbsoluteMagnitudePredicate;
template <>
DynamicDSOOctree::StraddlingPredicate* DynamicDSOOctree::straddlingPredicate = dsoStraddlesNodesPredicate;
template <>
DynamicDSOOctree::ExclusionFactorDecayFunction* DynamicDSOOctree::decayFunction = dsoAbsoluteMagnitudeDecayFunction;
// total specialization of the Stat
so far i have only tested this in fedora 4 -gnome
but i will be testing in visual studio.net in a few minites