From f23827bd87ac9b51333593febd003dad5dbe5c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 9 Feb 2013 12:39:22 +0100 Subject: [PATCH] Clang linker fixes. --- src/Physics/AxisAlignedBox.cpp | 4 ++-- src/Physics/Capsule.cpp | 4 ++-- src/Physics/ObjectShape.cpp | 4 ++-- src/Physics/ObjectShapeGroup.cpp | 4 ++-- src/Physics/Sphere.cpp | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Physics/AxisAlignedBox.cpp b/src/Physics/AxisAlignedBox.cpp index abce0aa3e..786003a40 100644 --- a/src/Physics/AxisAlignedBox.cpp +++ b/src/Physics/AxisAlignedBox.cpp @@ -38,7 +38,7 @@ template bool AxisAlignedBox::operator%(con (other.transformedPosition() < _transformedMax).all(); } -template class AxisAlignedBox<2>; -template class AxisAlignedBox<3>; +template class MAGNUM_PHYSICS_EXPORT AxisAlignedBox<2>; +template class MAGNUM_PHYSICS_EXPORT AxisAlignedBox<3>; }} diff --git a/src/Physics/Capsule.cpp b/src/Physics/Capsule.cpp index 59b54f653..784b016d9 100644 --- a/src/Physics/Capsule.cpp +++ b/src/Physics/Capsule.cpp @@ -53,7 +53,7 @@ template bool Capsule::operator%(const Sphe Math::pow<2>(transformedRadius()+other.transformedRadius()); } -template class Capsule<2>; -template class Capsule<3>; +template class MAGNUM_PHYSICS_EXPORT Capsule<2>; +template class MAGNUM_PHYSICS_EXPORT Capsule<3>; }} diff --git a/src/Physics/ObjectShape.cpp b/src/Physics/ObjectShape.cpp index fb1a800fc..220655125 100644 --- a/src/Physics/ObjectShape.cpp +++ b/src/Physics/ObjectShape.cpp @@ -46,7 +46,7 @@ template void ObjectShape::clean(const type if(_shape) _shape->applyTransformationMatrix(absoluteTransformationMatrix); } -template class ObjectShape<2>; -template class ObjectShape<3>; +template class MAGNUM_PHYSICS_EXPORT ObjectShape<2>; +template class MAGNUM_PHYSICS_EXPORT ObjectShape<3>; }} diff --git a/src/Physics/ObjectShapeGroup.cpp b/src/Physics/ObjectShapeGroup.cpp index b24d65a35..39766effd 100644 --- a/src/Physics/ObjectShapeGroup.cpp +++ b/src/Physics/ObjectShapeGroup.cpp @@ -45,7 +45,7 @@ template ObjectShape* ObjectShapeGroup; -template class ObjectShapeGroup<3>; +template class MAGNUM_PHYSICS_EXPORT ObjectShapeGroup<2>; +template class MAGNUM_PHYSICS_EXPORT ObjectShapeGroup<3>; }} diff --git a/src/Physics/Sphere.cpp b/src/Physics/Sphere.cpp index 7096ff0cb..c0cf2aa33 100644 --- a/src/Physics/Sphere.cpp +++ b/src/Physics/Sphere.cpp @@ -78,7 +78,7 @@ template bool Sphere::operator%(const Spher Math::pow<2>(transformedRadius()+other.transformedRadius()); } -template class Sphere<2>; -template class Sphere<3>; +template class MAGNUM_PHYSICS_EXPORT Sphere<2>; +template class MAGNUM_PHYSICS_EXPORT Sphere<3>; }}