Jump to content

MBSEQ / XCode / Error: missing brackets near initializer


Recommended Posts

Posted (edited)

For documenting purposes: I had compiling errors with seq_scales.c and seq_chords.c on my Mac (osx 10.7.5) with Xcode 4.5.2: Missing brackets near initializer. It's most probably a quirk on this particular setup. It's got something to do with arrays and unions within typedefs, needing different curly brackets.

In seq_scales.c I changed the scale data arrays to (double opening and closing curly brackets instead of single):

{{ 0, 2, 2, 4, 4, 5, 7, 7, 9, 9, 11, 11,"Major               " }},
and in seq_chords the chord arrays to (extra curly brackets around the numbers)
{  {0,  4,  7, -1}, "Maj.I " },

And then it compiled properly!

Edited by Martijn
Posted

Thanks for the hint, I will update soon! :)

But I'm surprised that these imperfections were handled as compile error, at my side these are only warnings.

Best Regards, Thorsten.

/Edit: fixed in repository now

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...