No Matching Function for call to


Hi all.

I am new to the forum and certainly not the most proficient juce user. I have a version of juce that is running about 2 years old now. When I try to build a project in Xcode I am getting this call to function errors:

/Users/brian/Documents/Programming/juce/BH Projects/1_StickyLickRoutine/External/ChordUtil.h:26: error: no matching function for call to ‘juce::StringArray::addTokens(const char*&, const char [3])’.

This is strange because when I reference the StringArray class and type in the addToken method, Xcode recognizes it. I am pretty sure my inputs into the method are correct. Here is some code:

ScaleHelper(const char *ints) {
	string = ints;
	StringArray strArr;
	strArr.addTokens(ints, " ,");

Any insight would be much appreciated.


Well, I think the compiler’s being pretty clear here - addTokens takes 3 parameters, so if you give it 2, it ain’t going to work…