This is how I just got horde3d to compile on 64bit ubuntu karmic. Everything except including stdint.h (header for uintptr_t) should be safe on all other platforms I can think of. There you can use some hack though like ifndef-ing for MSC_VER around it.
stdint.h however is *not* available on msvc as they don't support C99 (hey - that was 10 years ago -.-).
The thing about stdio.h is about sprintf not being found when using gcc 4.4.
Code:
Index: Extensions/Terrain/Sample/main.cpp
===================================================================
--- Extensions/Terrain/Sample/main.cpp (Revision 193)
+++ Extensions/Terrain/Sample/main.cpp (Arbeitskopie)
@@ -19,6 +19,7 @@
#include <iostream>
#include <cstdlib>
#include <cstring>
+#include <cstdio>
#include "glfw.h"
#include "app.h"
Index: Horde3D/Source/Horde3DEngine/egShader.cpp
===================================================================
--- Horde3D/Source/Horde3DEngine/egShader.cpp (Revision 193)
+++ Horde3D/Source/Horde3DEngine/egShader.cpp (Arbeitskopie)
@@ -335,8 +335,8 @@
const char *p0 = _p;
seekChar( " \t\n\r{}()<>=,;" ); // Advanve until whitespace or special char found
if( _p == p0 && *_p != '\0' ) ++_p; // Handle special char
- memcpy( _token, p0, std::min( _p - p0, tokenSize-1 ) );
- _token[std::min( _p - p0, tokenSize-1 )] = '\0';
+ memcpy( _token, p0, std::min( _p - p0, (long)tokenSize-1 ) );
+ _token[std::min( _p - p0, (long)tokenSize-1 )] = '\0';
}
public:
Index: Horde3D/Source/Horde3DEngine/egRenderer.cpp
===================================================================
--- Horde3D/Source/Horde3DEngine/egRenderer.cpp (Revision 193)
+++ Horde3D/Source/Horde3DEngine/egRenderer.cpp (Arbeitskopie)
@@ -20,6 +20,7 @@
#include "egTexture.h"
#include "egShader.h"
#include "egLight.h"
+#include <stdint.h>
#include "utDebug.h"
Index: Horde3D/Samples/Knight/main.cpp
===================================================================
--- Horde3D/Samples/Knight/main.cpp (Revision 193)
+++ Horde3D/Samples/Knight/main.cpp (Arbeitskopie)
@@ -19,6 +19,7 @@
#include <iostream>
#include <cstdlib>
#include <cstring>
+#include <cstdio>
#include "glfw.h"
#include "app.h"
Index: Horde3D/Samples/Chicago/main.cpp
===================================================================
--- Horde3D/Samples/Chicago/main.cpp (Revision 193)
+++ Horde3D/Samples/Chicago/main.cpp (Arbeitskopie)
@@ -19,6 +19,7 @@
#include <iostream>
#include <cstdlib>
#include <cstring>
+#include <cstdio>
#include "glfw.h"
#include "app.h"
Edit: Stupid phpBB removes spaces in front of lines even in code blocks. This probably breaks the patch, so I attached it manually again.