From 3367b3636c0f8c3b3e69d3accc7dec0abda8c1c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 22 Oct 2012 17:50:14 +0200 Subject: [PATCH] Disable "extern template" for ResourceManager in MinGW GCC. MinGW GCC probably has a bug which causes linker errors - complains about conflicting symbols (inline functions instantiated more than once). --- src/Physics/DebugDrawResourceManager.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Physics/DebugDrawResourceManager.h b/src/Physics/DebugDrawResourceManager.h index 8108e5af9..db22e4221 100644 --- a/src/Physics/DebugDrawResourceManager.h +++ b/src/Physics/DebugDrawResourceManager.h @@ -39,8 +39,12 @@ namespace Physics { namespace Implementation { template class AbstractDebugRenderer; }} +#ifndef WIN32 extern template class PHYSICS_EXPORT ResourceManager; #endif +#endif + +/** @todo fix extern template multiple definition linker errors in mingw32-gcc */ namespace SceneGraph { class Object2D;