Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

errors in OOTriangle.m

Discussion and announcements regarding the Mac port… er, original version of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
harry747
Deadly
Deadly
Posts: 135
Joined: Mon Feb 23, 2009 8:57 pm
Location: England

errors in OOTriangle.m

Post 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?
MacBook pro, OSX 10.8.5, Xcode 5
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post 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)
User avatar
harry747
Deadly
Deadly
Posts: 135
Joined: Mon Feb 23, 2009 8:57 pm
Location: England

Post 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.
MacBook pro, OSX 10.8.5, Xcode 5
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Sounds like you got the wrong file. Those hs and ms are so darn similar.
Post Reply