#6 gcc 4.x / linux compile fix

open
nobody
None
5
2012-07-18
2007-02-25
Anonymous
No

The current CVS dump of glui doesn't compile under gcc 4.x under linux (mandriva free 2007); basically it chokes on the 'template class ...' in glui.h.

Here's the cvs-diff patch:

===================================================================
RCS file: /cvsroot/glui/glui/src/include/GL/glui.h,v
retrieving revision 1.6
diff -r1.6 glui.h
1715,1716c1715,1721
< template class GLUIAPI std::allocator<GLUI_String>;
< template class GLUIAPI std::vector<GLUI_String, std::allocator<GLUI_String=""> >;


//
// (iw, 070225) commented out the 'template'; gcc 4+ won't accept it under linux.
// (if anybody else needs it under windows or so, feel free to put the reqd ifdefs
// around it ...
//
/* template */ class GLUIAPI std::allocator<GLUI_String>;
/* template */ class GLUIAPI std::vector<GLUI_String, std::allocator<GLUI_String> >;

Discussion


Anonymous


Cancel   Add attachments