Page 1 of 1

errors in OOTriangle.m

Posted: Sun May 02, 2010 5:53 am
by harry747
hi.

i just updated my local version of the trunk project, and when i try to build, i get the following errors, both in OOTriangle.m:

error: redefinition of 'calculateNormalForTriangle'

and

error: redefinition of 'resolveVectorInIJK'

is there anything i can do about that or should i wait for the next update?

Posted: Sun May 02, 2010 8:55 am
by JensAyton
OOTriangle.m was removed from the distro, the makefile and the Xcode project in r3256. It may be that your local Xcode project has changes that were merged incorrectly last time you updated. Two solutions:
  • Delete the Xcode project and update again
  • Manually remove OOTriangle.m from the project (it was in Source->Mathematics)

Posted: Sun May 02, 2010 3:53 pm
by harry747
i tried the second approach. that got me more errors. first

error: OOTriangle.h: No such file or directory

in this line:

#include "OOTriangle.h"

in OOMath.h, so I turned that line into a comment which gave me this error:

error: expected ')' before 'Triangle'

in this line:

- (Triangle) absoluteIJKForSubentity;

in shipEntity.h.


looks like i have to check the whole thing out again. argh.

Posted: Sun May 02, 2010 4:33 pm
by JensAyton
Sounds like you got the wrong file. Those hs and ms are so darn similar.