Hi guys,

I've run into some problems while trying to compile the current dailybuild (27.10.2006). One is an old problem in OSGExtrusionGeometry.cpp the subdivide() templated function which should not be declared static (in order to compile with icc in standards-compliance mode, other compilers seem to grok it) and some missing ``friends'' declarations in OSGPipelineComposer.h (which is definitely a bug, I'm still not 100% convinced about the one in OSGExtrusionGeometrycpp). I'd appreciate it if someone would apply the attached patches.

Thanks,
        Akos

PS: I think when it came up the last time, Carsten dug up some info from the boost mailing list that seems to support that you just cannot declare templated free functions as static, see his mail about the issue:

http://www.mail-archive.com/[email protected]/msg03112.html

--- Source/System/NodeCores/Drawables/Geometry/OSGExtrusionGeometry.cpp.orig    
2006-10-27 19:39:53.000000000 +0200
+++ Source/System/NodeCores/Drawables/Geometry/OSGExtrusionGeometry.cpp 
2006-10-27 19:55:00.000000000 +0200
@@ -106,7 +106,7 @@
 //                           Forward Declarations                              
 //-----------------------------------------------------------------------------
 template <class VectorTypeT>
-static void subdivide(const typename std::vector<VectorTypeT> &dataIn,
+void subdivide(const typename std::vector<VectorTypeT> &dataIn,
                      typename std::vector<VectorTypeT> *dataOut,
                      bool closed);
 
--- Source/System//Cluster/Window/SortLast/OSGPipelineComposer.h.orig   
2006-10-27 20:02:21.000000000 +0200
+++ Source/System//Cluster/Window/SortLast/OSGPipelineComposer.h        
2006-10-27 20:08:26.000000000 +0200
@@ -63,6 +63,13 @@
 
     typedef PipelineComposerBase       Inherited;
 
+    struct TileBuffer;
+    struct GroupInfo;
+    struct GroupInfoOrder;
+    friend struct TileBuffer;
+    friend struct GroupInfo;
+    friend struct GroupInfoOrder;
+    
     /** \brief RGB Color value */
     struct RGBValue
     {
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to