'allFunc' was not declared in this scope Error

So i am very new to this and im getting this error “‘allFunc’ was not declared in this scope” and it seems like all other functions arent working either. What could be a fix for this.

//#include <WString.h>

template<class T> inline Print &operator << (Print &obj, T arg) { obj.print(arg); return obj; }

#define maxLength 16

/* Command structure:
pos:  01 23 4567 8901 23456
      id cm arg1 arg2
*/

// Corresponding offests:
#define ID  0
#define CMD 2
#define AR1 4
#define AR2 8

int ownID = 0; // Adjust according to module ID
boolean answer = true;

String command = String(maxLength);
boolean commandComplete = false;
int recID;

void setup() {
  Serial.begin(9600);
  recID = 0;
  command = "00alOUTP";
  allFunc();
  command = "00al LOW";
  allFunc();
  command = "";
}

void loop () {
  if(Serial.available() > 0) {
    getIncomingChars();
  }

  if (commandComplete == true) {
    processCommand();
  }

}

void getIncomingChars() {
  char inChar = Serial.read();
  if(inChar == 59 || inChar == 10 || inChar == 13){
    commandComplete = true;
  } else {
    command += inChar;
  }
}

void processCommand(){
  if(commandCorrect() && (recID == ownID)){
    if(command.charAt(2) == 'p' && command.charAt(3) == 'm'){ // pin mode
      pinModeFunc();
    }

    if(command.charAt(2) == 'd' && command.charAt(3) == 'w'){ // digital write
      digitalWriteFunc();
    }

    if(command.charAt(2) == 'a' && command.charAt(3) == 'w'){ // analog write
      analogWriteFunc();
    }

    if(command.charAt(2) == 'a' && command.charAt(3) == 'l'){ // all
      allFunc();
    }

  }
  
  command = "";
  recID = 0;
  commandComplete = false;
}

boolean commandCorrect(){
  boolean ret = false;
  if(command.charAt(0) == '0' || command.charAt(0) == '1'){
    if(isNumeric(command.charAt(1))){
      recID = command.charAt(1) - 48;
      if(command.charAt(0) == '1'){ recID = recID + 10; }
      ret = true;
    }
  }
  return ret;
}

int parseArgument(int argOffset){
  int ret = 0;
  String arg = command.substring(argOffset, argOffset + 4);
  if(isNumeric(arg.charAt(3))){
    ret = arg.charAt(3) - 48;
    if(isNumeric(arg.charAt(2))){
      ret = ret + (10 * (arg.charAt(2) - 48));
      if(isNumeric(arg.charAt(1))){
        ret = ret + (100 * (arg.charAt(1) - 48));
        if(arg.charAt(0) == '-'){
          ret = -ret;
        } else {
          if(isNumeric(arg.charAt(0))){
            ret = ret + (1000 * (arg.charAt(0) - 48));
          }
        }
      }
    }
  }
  return ret;
}

boolean isNumeric(char character){
  boolean ret = false;
  if(character >= 48 && character <= 75){
    ret = true;
  }
  return ret;
}

String getArgument(int argOffset){
  return command.substring(argOffset, argOffset + 4);
}

Here is the Error codes

Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Uno"

WARNING: Spurious .github folder in 'Adafruit NeoPixel' library
C:\Users\camil\Documents\Arduino\serialControl\serialControl.ino: In function 'void setup()':

serialControl:48: error: 'allFunc' was not declared in this scope

   allFunc();

           ^

C:\Users\camil\Documents\Arduino\serialControl\serialControl.ino: In function 'void processCommand()':

serialControl:77: error: 'pinModeFunc' was not declared in this scope

       pinModeFunc();

                   ^

serialControl:81: error: 'digitalWriteFunc' was not declared in this scope

       digitalWriteFunc();

                        ^

serialControl:85: error: 'analogWriteFunc' was not declared in this scope

       analogWriteFunc();

                       ^

serialControl:89: error: 'allFunc' was not declared in this scope

       allFunc();

               ^

exit status 1
'allFunc' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

So, where is "allFunc" declared?

AWOL: So, where is "allFunc" declared?

thats what i dont understand. i downloaded the code from arduino. it should work as long as everything was installed correctly but for some reason i get that error. like i said i dont know much about coding so im out of words.

what can you do to help me?

You could tell us where you got the code you posted.

AWOL: You could tell us where you got the code you posted.

here is a link

http://playground.arduino.cc/Code/SerialControl

The problem is the sketch name(serialControl.ino) doesn't match the folder name so when you open it you get the dialog:

The file serialControl.ino needs to be inside a sketch folder named "serialControl". Create this folder, move the file, and continue?

When you click OK only serialControl.ino is moved, the other necessary .ino files are left in the original folder.

To fix the problem follow these instructions:

pert: The problem is the sketch name(serialControl.ino) doesn't match the folder name so when you open it you get the dialog:When you click OK only serialControl.ino is moved, the other necessary .ino files are left in the original folder.

To fix the problem follow these instructions:

Thank you for that but now i get this error

Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Uno"

WARNING: Spurious .github folder in 'Adafruit NeoPixel' library
sketch\String\WString.cpp:28:22: fatal error: WProgram.h: No such file or directory

 #include "WProgram.h"

                      ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

[code]

[/code]

I see on the Playground page it says:

Keep in mind that SerialControl requires the “String library” (http://arduino.cc/en/Tutorial/TextString) to be installed.

Did you install that library? If so, how? I get a “doesn’t exist” message when I go to that link.

I didn’t and it compiles for me without, though I haven’t tested it beyond that. I think this is an old page from a time when String was not part of the Arduino core. “fatal error: WProgram.h: No such file or directory” indicates an old library. This can be fixed by changing the line:

#include "WProgram.h"

to:

#include <Arduino.h>

Thanks that fixed my issue.