Patric Schmitz wrote: > #if (defined(STLPORT) && !defined(__sun)) || > defined(OSG_WITH_STLPORT) #undef OSG_USE_STDMATH #endif > > Did that, now the problem seems to be that the > _RWSTD_COMPLEX_DEFAULT() macro is no longer defined. (since i don't > find the pattern anywhere inside the source-tree, i assume this is a > macro the compiler defines). Are there alternatives to this > macro/method, a websearch for the macro name doenst reveal anything > useful to me.
Okay, I ivestigated it a bit further myself, and found out that the macro is normally defined in stdcomp.h of the Cstd standard library. STLport seems not to define this macro at all. So I provisionally changed the relevant lines in Source/Base/Field/OSGMFieldVector.h (ll. 65-83) to: #if defined(__linux) || defined(__hpux) || defined(darwin) || defined(__sun) # if __GNUC__ >= 3 # define OSG_STL_DEFAULT_ALLOCATOR(TP) = std::allocator<TP> # elif defined (__ICL) # define OSG_STL_DEFAULT_ALLOCATOR(TP) = std::allocator<TP> # elif defined (OSG_HPUX_ACC) # define OSG_STL_DEFAULT_ALLOCATOR(TP) _RWSTD_COMPLEX_DEFAULT(std::allocator<TP>) # elif defined(OSG_SUN_CC) # if defined(STLPORT) # define OSG_STL_DEFAULT_ALLOCATOR(TP) = std::allocator<TP> # else # define OSG_STL_DEFAULT_ALLOCATOR(TP) _RWSTD_COMPLEX_DEFAULT(std::allocator<TP>) # endif # else # define OSG_STL_DEFAULT_ALLOCATOR(TP) = std::__STL_DEFAULT_ALLOCATOR(TP) # endif #else # define OSG_STL_DEFAULT_ALLOCATOR(TP) = std::__STL_DEFAULT_ALLOCATOR(TP) #endif and the Base lib compiles (and links) cleanly. Maybe you want to incorporate the changes into the cvs, or tell me how this would be done properly, and put those changes in the cvs :) regards, Patric -- Patric Schmitz, MATA Trainee VR-Group RWTH Aachen University Center for Computing & Communication ------------------------------------------------------------------------- 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
