☆─────────────────────────────────────☆
yapple (Fedora) 于 (Thu Apr 24 12:07:34 2008) 提到:
source code isd in the attachment. It compiles OK on Visual Studio 2005 on
WinXP. But it failed to compile in GCC 4.1.1 on Linux. But if I change the
statement in //2:
a = 1.0 / ( (m1 * cos(theta)) + (m2 * sin(theta)) ).Length();
to //1:
Vector3DFloat x1 = m1 * cos(theta);
Vector3DFloat x2 = m2 * sin(theta);
a = 1.0/(x1+x2).Length();
Then it compiles fin in GCC4.1.1. These two are euivalent. The error
m