Hello,
I can't compile the following code using a more or less recent CVS version of
OpenSG (last checkout end of 2005).
OSG::GeoTexCoords1fPtr foobar = OSG::GeoTexCoords1f::create();
beginEditCP(foobar);
{
foobar->addValue(1.0f);
}
endEditCP(foobar);
The compiler output of VC++ 2003 is:
OSGVector.h(574) : error C2825: 'VectorT::_iSize': cannot form a qualified name
main.cpp(187) : see reference to function template instantiation
'osg::VectorInterface<ValueTypeT,StorageInterfaceT>::VectorInterface<T>(const
VectorT &)' being compiled
with
[
ValueTypeT=osg::Real32,
StorageInterfaceT=osg::VecStorage2<osg::Real32>,
T=float,
VectorT=float
]
[...]
X:\net\OpenSG_1.6.0_ifx\include\OpenSG\OSGVector.h(574) : error C2039: '_iSize'
: is not a member of 'operator``global namespace'''
X:\net\OpenSG_1.6.0_ifx\include\OpenSG\OSGVector.h(574) : error C2275:
'VectorT' : illegal use of this type as an expression
ifxOpenSGSurfaceMesh3DViewer.cpp(187) : see declaration of 'VectorT'
X:\net\OpenSG_1.6.0_ifx\include\OpenSG\OSGVector.h(574) : error C2146: syntax
error : missing ')' before identifier '_iSize'
X:\net\OpenSG_1.6.0_ifx\include\OpenSG\OSGVector.h(574) : error C2059: syntax
error : ')'
X:\net\OpenSG_1.6.0_ifx\include\OpenSG\OSGVector.h(575) : error C2143: syntax
error : missing ';' before '{'
X:\net\OpenSG_1.6.0_ifx\include\OpenSG\OSGVector.h(578) : error C2228: left of
'.getValues' must have class/struct/union type
type is 'const float'
[...]
I guess OpenSG expects a vector type in GeoTexCoordsXf, however it's just a
plain float for GeoTexCoords1f.
Moritz
______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users