Hello David, On 1/24/2011 8:28 PM, David Kabala wrote: > I am getting a strange compile error(included at end of message) when > compiling the latest head of the repository of OSGBase. These errors > occur in any code that includes OSGSField.ins, OSGMField.ins, > OSGPointerMField.inl > <https://github.com/vossg/OpenSGDevMaster/commit/66fd0bf44b8f01c910f942e3f64afc2e4d297719#diff-27>, > or OSGPointerMField.inl > <https://github.com/vossg/OpenSGDevMaster/commit/66fd0bf44b8f01c910f942e3f64afc2e4d297719#diff-27>. > > The error indicates,as far as I can tell, that the typedef Self in > SField and MField is not defined in the function's namespace when > attempting to call: > FieldDescriptionBase *returnValue = new Self::Description(_fieldType, > szFieldname, > "", > 0, > 0, > false, > uiFieldFlags. > fEditMethod, > fGetMethod); > Setup: > This is a clean clone from github commit: > b933758cabf0e0f5c915e43f5a4fadf70ef56beb > <https://github.com/vossg/OpenSGDevMaster.git>. > Platform: Linux 2.6.18-194.17.1.el5 > Compiler: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50) > Cmake configuration: Debug, everything else were the default values. >
hmm, might be a problem with slightly older gcc (4.4.5 on Fedora 13 works fine for me). Can you try putting a typename in there like this: FieldDescriptionBase *returnValue = new typename Self::Description(...); That might help it figure out that it in fact is seeing a type. Cheers, Carsten ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users