Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: cimmerian on June 13, 2014, 07:45:11 am

Title: XCode 5 : Goto into protected scope
Post by: cimmerian on June 13, 2014, 07:45:11 am
Noob here, but interested in contributing so I checked out the source and Im trying to build in XCode 5 on Mavericks.
Kept getting fails with 'goto in protected scope' errors. in missionmessage.cpp.

declaring builtinMessage before all the goto messages makes it happy.
Anyway hope this is helpful in some small way.

diff attached.

[attachment kidnapped by pirates]
Title: Re: XCode 5 : Goto into protected scope
Post by: chief1983 on June 13, 2014, 08:08:01 am
I've been making our builds with Xcode 5.1.1 for a while now with no halting errors.  I am on mountain lion though but that shouldn't change the compilation result since we set explicit SDKs and targets in the Xcode4 project file.
Title: Re: XCode 5 : Goto into protected scope
Post by: The E on June 13, 2014, 08:09:27 am
Good catch, but this should have been fixed in revision 10760 (commit by Niffiwan on June 7th) already.
Title: Re: XCode 5 : Goto into protected scope
Post by: cimmerian on June 13, 2014, 08:35:54 am
thanks chaps - Ill check out again see how I go.
Chief - getting some other halting errors also, at the moment 'Too Many arguments provided to function like macro invocation'
Seems to be complaining about ADE_FUNC declaration in lua.cpp.

Gotta say from reading the sticky I didnt expect a response so fast , you guys are ON IT !

 :D
Title: Re: XCode 5 : Goto into protected scope
Post by: cimmerian on June 13, 2014, 08:45:45 am
Chief - scratch that latest checkout built fine. Ta!
Title: Re: XCode 5 : Goto into protected scope
Post by: chief1983 on June 13, 2014, 10:20:25 am
Glad to hear it, and see another Mac user around.  There's a few Mac using devs already around though, as it's the second most popular platform I believe, so it's not hard for someone to be able to get back to you.  That sticky could probably stand to be updated.
Title: Re: XCode 5 : Goto into protected scope
Post by: Echelon9 on June 13, 2014, 10:41:14 pm
Hi cimmerian,

Another Mac dev here. As mentioned above, we should be able to assist with any build issues pretty quickly.

Suggest you take a look at Mantis (http://scp.indiegames.us/mantis/my_view_page.php) or our Newbie Projects (http://www.hard-light.net/wiki/index.php/Newbie_Projects) once you're starting to get comfortable with the code.
Title: Re: XCode 5 : Goto into protected scope
Post by: cimmerian on June 16, 2014, 04:38:58 am
Thanks Echelon ! Sure will. :D