Hello,
I try to build OSG in eclipse. And I have a error in the readwrite.cpp of the
3ds plugin.
In this function:
Lib3dsIntw
lib3ds_intw_read(FILE *f)
{
Lib3dsByte b[2];
ASSERT(f);
int result = fread(b,2,1,f);
if (result==0) return 0;
if (s_requiresByteSwap)
{
osg::swapBytes2((char*)b);
}
return (*((Lib3dsIntw*)b));
}
The error is in the return line. The compiler print out "violation of the
strict-aliasing-rule" (it is a basically translation, the original message is
in german).
It seems to me,that the unref *(pointer-type) is a problem.
What is happens when I unref a array?! Get I the first item? Because b is
declared as a array in the first line.
Cheers
Martin
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org