Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - UberLord

Pages: [1]
1
Linux Specific Issues / Re: Gentoo ebuilds
« on: October 16, 2008, 09:42:46 pm »
Quote
loader.cpp: In static member function 'static CalCoreBone* CalLoader::loadCoreBones(CalDataSource&)':
loader.cpp:851: error: 'auto_ptr' is not a member of 'std'
loader.cpp:851: error: expected primary-expression before '>' token
loader.cpp:851: error: 'pCoreBone' was not declared in this scope

gcc-4.3 forces strict header inclusions.
I couldn't see where cal3d includes this foo so I just wanged the right headers in the files that complained
This patch fixes :)

Code: [Select]
diff -ur cal3d.orig/src/cal3d/loader.cpp cal3d/src/cal3d/loader.cpp
--- cal3d.orig/src/cal3d/loader.cpp     2008-10-16 20:26:46.121857215 +0100
+++ cal3d/src/cal3d/loader.cpp  2008-10-16 20:25:55.413857009 +0100
@@ -16,6 +16,7 @@
 // Includes                                                                   //
 //****************************************************************************//

+#include <memory>
 #include "cal3d/loader.h"
 #include "cal3d/error.h"
 #include "cal3d/matrix.h"
diff -ur cal3d.orig/src/cal3d_converter.cpp cal3d/src/cal3d_converter.cpp
--- cal3d.orig/src/cal3d_converter.cpp  2008-10-16 20:37:24.072423219 +0100
+++ cal3d/src/cal3d_converter.cpp       2008-10-16 20:36:36.216423324 +0100
@@ -11,6 +11,8 @@

 #include "cal3d/cal3d.h"

+#include <cstring>
+
 #define SKELETON 0
 #define MESH 1
 #define ANIMATION 2

Pages: [1]