By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,551 Members | 2,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,551 IT Pros & Developers. It's quick & easy.

Menu_Control_Uno.ino:249:2: error: expected unqualified-id before 'if' Error compilin

P: 13
Hi,

Not quite sure if someone will be able to help me but..........

I am currently trying to build a menu layout for a 20x4 LCD. I originally had the LCD working with the keypad to have a title screen and password login with password right and wrong screens.

I am using an Arduino Uno which is plugged into an 20x04 LCD (1602 model shown in fitzrig) via I2C Connection. The 4x4 Matrix keypad is plugged into the uno using pins 6-13.

After I have mastered the menu layout on the LCD I will add in a clock module for time and date and LED's which will hopefully be controlled using a transistor to reduce the amount of pins used by the Arduino.

After adding the bits of menu coding I have been getting continuous errors. Most I have been able to solve up until this point changing H files etc, but now I am at a bit of a loss as to what to change next as I am a beginner to arduino and coding. the problem is occurring at line 249. The error message I am receiving is:

Menu_Control_Uno.ino:249:2: error: expected unqualified-id before 'if'
Error compiling.

The menu program seems to compile on its own without the keypad and LCD code, as soon as I put them all together I have had to work through errors. Because the menu isn't working with my LCD I can not tell what exactly the code has done so I can alter it to suit my own needs.

any help out be greatly appreciated

The Arduino code is as follows: line 249 is the first line of the menu loop starting with the word "if"


if (Serial.available()){
switch (Serial.read()){
case 'w':
if (menu.isCurrentSubMenu()){
subMenu.down(); //set index closer to 0
}
break;
case 's':
if (menu.isCurrentSubMenu()){
subMenu.up(); //set index closer to maximum
}
break;
case 'a':
menu.down();
break;
case 'd':
menu.up();
break;
case ' ':
menu.use();
break;
case '0':
menu.select(0);
break;
case '1':
menu.select(1);
break;
case '2':
menu.select(2);
break;
}
}
}

void menuChanged(ItemChangeEvent event){
Serial.println("menuChanged");
if( event == &menuItem1 ){
Serial.println("\tmenuItem1 selected"); //user feedback
}else if( event == &menuItemWithSubmenu ){
Serial.println("\tmenuItemWithSubmenu selected"); //user feedback
}else if( event == &subMenuItem1 ){
Serial.println("\tsubMenuItem1 selected"); //user feedback
}else if( event == &subMenuItem2 ){
Serial.println("\tsubMenuItem2 selected"); //user feedback
}else if( event == &subMenuItem3 ){
Serial.println("\tsubMenuItem3 selected"); //user feedback
}else if( event == &menuItem3 ){
Serial.println("\tmenuItem3 selected"); //user feedback
}
}

void menuUsed(ItemUseEvent event){
Serial.println("menuUsed");
if( event == &menuItem1 ){
Serial.println("\tmenuItem1 used"); //user feedback
}else if( event == &subMenuItem1 ){
Serial.println("\tsubMenuItem1 used"); //user feedback
}else if( event == &subMenuItem2 ){
Serial.println("\tsubMenuItem2 used"); //user feedback
}else if( event == &subMenuItem3 ){
Serial.println("\tsubMenuItem3 used"); //user feedback
}else if( event == &menuItem3 ){
Serial.println("\tmenuItem3 used"); //user feedback
}
}
Apr 7 '15 #1
Share this Question
Share on Google+
17 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
I see function definitions for menuChanged(ItemChangeEvent) and for menuUsed(ItemUseEvent) but your menu code is not inside a function.

The menu code is inside a function? Yes?
Apr 8 '15 #2

P: 13
Thanks for your reply weaknessforcats. I think it is meant to be inside a function so I may need to move it. I basically have a displayCodeEntryScreen which leads you to a menuScreen.

From this menu screen I want to be able select the applicable number on the keypad to take me to that submenu.

I found the menu code on the arduino website, but I wasn't having much luck with it so I just recently removed it from the code. Since I have been trying to put bits of code in different parts through trial and error. when I get to the menuScreen and input the keyboard, it always assumes that I am trying to re-enter the code and instantly reverts me back to the displayCodeEntryScreen.

Thanks for your help, I have attached the full code

Expand|Select|Wrap|Line Numbers
  1. /*
  2. ////////////////////////////////////////////////////////////////////////////////////////////////////MENU_CONTROLLER_UNO /////////////////////////////////////////////////////////////
  3. ////////////////////////////////////////////////////////////////////////////////////////////////////MENU_CONTROLLER_UNO /////////////////////////////////////////////////////////////
  4. ////////////////////////////////////////////////////////////////////////////////////////////////////MENU_CONTROLLER_UNO /////////////////////////////////////////////////////////////
  5. LCD I2C &: Keypad Code: Mike Myers (http://mikemyers.me)  @netnutmike - Let's Make It Episode 6 
  6.            (http://tech-zen.tv/index.php/shows/let-s-make-it/episodes/59-sensor-fun-with-arduino-1-massive-failure-but-4-successes-let-s-make-it-episode-6)
  7. Menu Code: Alexander Brevig (alexanderbrevig@gmail.com) - Menu Library for Arduino
  8.            (http://playground.arduino.cc/Code/Menu)
  9.  
  10.  
  11.  
  12.  
  13.  
  14. */
  15. //*-----( Import needed libraries )-----*//
  16. #include <LiquidCrystal_I2C.h>
  17. #include <Wire.h> 
  18. #include <Keypad.h>
  19.  
  20.  
  21.  
  22. //*-----( Declare Constants )-----*//
  23. const byte rows = 4;
  24. const byte cols = 4;
  25. int redLEDpin = 4;
  26. int greenLEDpin = 5;
  27. //*-----( Declare objects )-----*//
  28.  
  29. // *-----( Declare Variables )-----*//
  30.  
  31. /*
  32. ///////////////////////////////////////////////////////////////////////////////////////////////////////LIQUID CRYSTAL IC2 DISPLAY
  33. */
  34. #define address 0x27
  35.  
  36. /*
  37. ///////////////////////////////////////////////////////////////////////////////////////////////////////MENU & SUB-MENU
  38. */
  39.  
  40. /* 
  41. ///////////////////////////////////////////////////////////////////////////////////////////////////////4X4 MATRIX KEYPAD
  42. */
  43. char keys[rows][cols] = {
  44.   {'1','2','3','A'},
  45.   {'4','5','6','B'},
  46.   {'7','8','9','C'},
  47.   {'*','0','#','D'}
  48. };
  49.  
  50. byte rowPins[rows] = {13,11,12,10};
  51. byte colPins[cols] = {9,8,7,6};
  52.  
  53. Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, rows, cols);
  54.  
  55. LiquidCrystal_I2C lcd(0x27,20,4);              // set the LCD address to 0x27 for a 20 chars and 4 line display
  56.  
  57.  
  58. char* ourCode = "3308";                        //set our code
  59. int currentPosition = 0;
  60. char* Select1 = "1";
  61.  
  62. /*
  63. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VOID SETUP///////////////////////
  64. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VOID SETUP///////////////////////
  65. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VOID SETUP///////////////////////
  66. */
  67.  
  68. void setup()                                    // Write setup function
  69. {
  70. /*  
  71. //////////////////////////////////////////////// LIQUID CRYSTAL IC2 SETUP ////////////////////////////////////////////////
  72. */
  73.   lcd.init();                                  // initialize the lcd 
  74.   lcd.init();                                  // Print a message to the LCD.
  75.   lcd.backlight();  
  76.  
  77.  
  78.   displayCodeEntryScreen();
  79.  
  80.  
  81.   pinMode(redLEDpin, OUTPUT);                      //setup and turn off both LEDs
  82.   pinMode(greenLEDpin, OUTPUT);
  83.   digitalWrite(redLEDpin, LOW);
  84.   digitalWrite(greenLEDpin, LOW);
  85.  
  86.  
  87. /*   
  88. //////////////////////////////////////////////// MENU & SUB-MENU SETUP ////////////////////////////////////////////////
  89. */
  90.  
  91.  
  92.  
  93. }
  94. /*
  95. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VOID LOOP////////////////////////
  96. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VOID LOOP///////////////////////
  97. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VOID LOOP///////////////////////
  98. */
  99.  
  100. void loop()
  101.  
  102. /*  
  103. //////////////////////////////////////////// KEYPAD LOOP ////////////////////////////////////////////
  104. */
  105.  
  106. {
  107.   int l;
  108.  
  109.   char key = keypad.getKey();
  110.  
  111.   if (int(key) != 0) {
  112.     lcd.setCursor(14,3);
  113.     lcd.print("    ");
  114.     lcd.setCursor(14,3);
  115.  
  116.     for (l=0; l<=currentPosition; ++l)
  117.     {
  118.       lcd.print("*");
  119.     }
  120.  
  121.     if (key == ourCode[currentPosition])
  122.       {
  123.         ++currentPosition;
  124.         if (currentPosition == 4)
  125.         {
  126.           unlockDoor();
  127.           currentPosition = 0;
  128.  
  129.         }
  130.       } else {
  131.         invalidCode();
  132.         currentPosition = 0;
  133.       }
  134.   }
  135. }
  136.  
  137. /*  
  138. //////////////////////////////////////////// LIQUID CRYSTAL IC2 LOOP ////////////////////////////////////////////
  139. */
  140.  
  141. void displayCodeEntryScreen()
  142. {
  143.   clearScreen();
  144.   lcd.setCursor(0,0);
  145.   lcd.print("AFFINITY  AQUAPONICS"); 
  146.   lcd.setCursor(1,1);                                                      // Go to the 2nd line
  147.   lcd.print("URBAN FARM SYSTEM");   
  148.   lcd.setCursor(3,3);                                                      // Go to the 3rd line
  149.   lcd.print("Passcode:");
  150.   lcd.setCursor(16,3);
  151. }
  152.  
  153. void invalidCode()
  154. {
  155.   digitalWrite(redLEDpin, HIGH);
  156.   clearScreen();
  157.   lcd.setCursor(0,0);
  158.   lcd.print("********************");
  159.   lcd.setCursor(0,1);
  160.   lcd.print("** ACCESS DENIED! **");
  161.   lcd.setCursor(0,2);
  162.   lcd.print("**  INVALID CODE  **");
  163.   lcd.setCursor(0,3);
  164.   lcd.print("********************");
  165.  
  166.   delay(5000);
  167.   digitalWrite(redLEDpin, LOW);
  168.   displayCodeEntryScreen();
  169. }
  170.  
  171. void unlockDoor()
  172. {
  173.   digitalWrite(greenLEDpin, HIGH);
  174.   clearScreen();
  175.   lcd.setCursor(0,0);
  176.   lcd.print("********************");
  177.   lcd.setCursor(0,1);
  178.   lcd.print("** ACCESS GRANTED **");
  179.   lcd.setCursor(0,2);
  180.   lcd.print("**    WELCOME!!   **");
  181.   lcd.setCursor(0,3);
  182.   lcd.print("********************");
  183.  
  184.   delay(5000);                                                         //add any code to unlock the door here
  185.   digitalWrite(greenLEDpin, LOW);
  186.   menuScreen();
  187. }
  188.  
  189. void menuScreen()
  190. {
  191.   digitalWrite(greenLEDpin, HIGH);
  192.   clearScreen();
  193.   lcd.setCursor(8,0);
  194.   lcd.print("MENU");
  195.   lcd.setCursor(0,1);
  196.   lcd.print("1.SENSORS");
  197.   lcd.setCursor(0,2);
  198.   lcd.print("2.CONTROLS");
  199.   lcd.setCursor(0,3);
  200.   lcd.print("3.SETTINGS");
  201.   lcd.setCursor(11,1);
  202.   lcd.print("4.LOCK");
  203. }
  204.  
  205. void sensorScreen()
  206. {
  207.   digitalWrite(greenLEDpin, HIGH);
  208.   clearScreen();
  209.   lcd.setCursor(0,0);
  210.   lcd.print("SENSORS");
  211.   lcd.setCursor(0,1);
  212.   lcd.print("1.LIGHT");
  213.   lcd.setCursor(0,2);
  214.   lcd.print("2.TEMP/HU");
  215. }
  216.  
  217. void clearScreen()
  218. {
  219.   lcd.setCursor(0,0);
  220.   lcd.print("                    ");
  221.   lcd.setCursor(0,1);
  222.   lcd.print("                    ");
  223.   lcd.setCursor(0,2);
  224.   lcd.print("                    ");
  225.   lcd.setCursor(0,3);
  226.   lcd.print("                    ");
  227. }
  228.  
  229.  
  230. /*  
  231. //////////////////////////////////////////////// MENU & SUB-MENU LOOP ////////////////////////////////////////////////
  232. */
  233.  



This was the old menu code I was trying to insert, but it didn't work with the LCD and keypad code. It did however load without the lcd and keypad, but i couldn't tell what it had done, to try an interpret what each line of code is referring to.

Expand|Select|Wrap|Line Numbers
  1. #include <SubMenuItem.h>
  2. #include <SubMenu.h>
  3. #include <MenuItem.h>
  4. #include <Menu.h>
  5. //initialize menu
  6. Menu menu = Menu(menuUsed,menuChanged);
  7. //initialize menuitems
  8.   MenuItem menuItem1 = MenuItem();
  9.   MenuItem menuItemWithSubmenu = MenuItem();
  10.     SubMenu subMenu = SubMenu(menuChanged);
  11.       SubMenuItem subMenuItem1 = SubMenuItem();
  12.       SubMenuItem subMenuItem2 = SubMenuItem();
  13.       SubMenuItem subMenuItem3 = SubMenuItem();
  14.   MenuItem menuItem3 = MenuItem();
  15.  
  16. void setup(){
  17.   Serial.begin(9600);
  18.  
  19.   //configure menu
  20.   menu.addMenuItem(menuItem1);
  21.   menu.addMenuItem(menuItemWithSubmenu);
  22.     menuItemWithSubmenu.addSubMenu(subMenu);
  23.       subMenu.addSubMenuItem(subMenuItem1);
  24.       subMenu.addSubMenuItem(subMenuItem2);
  25.       subMenu.addSubMenuItem(subMenuItem3);
  26.   menu.addMenuItem(menuItem3);
  27.  
  28.   menu.select(0);
  29.   subMenu.select(0);
  30. }
  31. void loop(){
  32.   if (Serial.available()){
  33.     switch (Serial.read()){  
  34.       case 'w':
  35.         if (menu.isCurrentSubMenu()){
  36.           subMenu.down(); //set index closer to 0
  37.         }
  38.         break;
  39.       case 's':
  40.         if (menu.isCurrentSubMenu()){
  41.           subMenu.up(); //set index closer to maximum
  42.         }
  43.         break;
  44.       case 'a':
  45.         menu.down();
  46.         break;
  47.       case 'd':
  48.         menu.up();
  49.         break;
  50.       case ' ':
  51.         menu.use();
  52.         break;
  53.       case '0':
  54.         menu.select(0);
  55.         break;
  56.       case '1':
  57.         menu.select(1);
  58.         break;
  59.       case '2':
  60.         menu.select(2);
  61.         break;
  62.     }
  63.   }
  64. }
  65.  
  66. void menuChanged(ItemChangeEvent event){
  67.   Serial.println("menuChanged");
  68.   if( event == &menuItem1 ){
  69.     Serial.println("\tmenuItem1 selected"); //user feedback
  70.   }else if( event == &menuItemWithSubmenu ){
  71.     Serial.println("\tmenuItemWithSubmenu selected"); //user feedback
  72.   }else if( event == &subMenuItem1 ){
  73.     Serial.println("\tsubMenuItem1 selected"); //user feedback
  74.   }else if( event == &subMenuItem2 ){
  75.     Serial.println("\tsubMenuItem2 selected"); //user feedback
  76.   }else if( event == &subMenuItem3 ){
  77.     Serial.println("\tsubMenuItem3 selected"); //user feedback
  78.   }else if( event == &menuItem3 ){
  79.     Serial.println("\tmenuItem3 selected"); //user feedback
  80.   }
  81. }
  82.  
  83. void menuUsed(ItemUseEvent event){
  84.   Serial.println("menuUsed");
  85.   if( event == &menuItem1 ){
  86.     Serial.println("\tmenuItem1 used"); //user feedback
  87.   }else if( event == &subMenuItem1 ){
  88.     Serial.println("\tsubMenuItem1 used"); //user feedback
  89.   }else if( event == &subMenuItem2 ){
  90.     Serial.println("\tsubMenuItem2 used"); //user feedback
  91.   }else if( event == &subMenuItem3 ){
  92.     Serial.println("\tsubMenuItem3 used"); //user feedback
  93.   }else if( event == &menuItem3 ){
  94.     Serial.println("\tmenuItem3 used"); //user feedback
  95.   }
  96. }
  97.  
Apr 8 '15 #3

weaknessforcats
Expert Mod 5K+
P: 9,197
You might try something like this:

Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2.  
  3.  
  4. void DisplayMenu()
  5. {
  6.     /* display the menu here*/
  7.  
  8. }
  9. void Choice1()
  10. {
  11.     /*code for choice 1*/
  12. }
  13. void Choice2()
  14. {
  15.     /*code for choice 2*/
  16. }
  17. char GetChoice()
  18. {
  19.     char choice;
  20.     scanf("%c", &choice);   //C language
  21.  
  22.     return choice;
  23. }
  24. void Menu()
  25. {
  26.     char choice = 0;
  27.     choice = GetChoice();
  28.  
  29.         switch (choice)
  30.     {
  31.         case '1':
  32.             Choice1();
  33.             break;
  34.  
  35.         case '2':
  36.             Choice2();
  37.             break;
  38.  
  39.             /* etc...*/
  40.     }
  41.  
  42. }
  43. int main()
  44. {
  45.     while (1)
  46.     {
  47.         DisplayMenu();
  48.         Menu();
  49.     }
  50.  
  51. }
In this program in main() there is an infinite loop where the menu is displayed and then the menu is called. One or more actions in the menu() function will exit the program which means if the menu does not exit, the loop cycles again, redisplays the menu, and then calls the menu again.

Try to fit your code into a shell like this. Be sure the shell compiles. Then add code for one choice and recompile. Again, be sure the code compiles correctly. Then add more code. BY doing the adding of code in small pieces, should the program not compile the error will be in the last code added.

I would also have a drawing of the menu structure and, for a beginner, I would avoid sub menus until my program with one menu works perfectly.
Apr 8 '15 #4

P: 13
Thanks weaknessforcats I will give it a go and let you know what the outcome is. I have a menu layout hierarchy tree but it wouldn't let me attach it without having a web address for this site. Before Posting on this site I posted on the arduino forum but didn't get any response.

If you wanted to see the menu tree layout it can be found here.

http://forum.arduino.cc/index.php?topic=314063.0

Thank-you very much for your help, I will post again soon!
Apr 9 '15 #5

P: 13
a quick question......would the above shell be pasted into the "Void Setup or above Void Set up? when I starting adding in the code, piece by piece?
Apr 9 '15 #6

P: 13
With this code:
Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2. #include <_mingw.h> 
  3. #include <sdkddkver.h>
  4. #include <sys/types.h> 
  5.  
  6.  
  7. void DisplayMenu()
  8. {
  9.     /* display the menu here*/
  10.  
  11. }
  12. void Choice1()
  13. {
  14.     /*code for choice 1*/
  15. }
  16. void Choice2()
  17. {
  18.     /*code for choice 2*/
  19. }
  20. char GetChoice()
  21. {
  22.     char choice;
  23.     scanf("%c", &choice);   //C language
  24.  
  25.     return choice;
  26. }
  27. void Menu()
  28. {
  29.     char choice = 0;
  30.     choice = GetChoice();
  31.  
  32.         switch (choice)
  33.     {
  34.         case '1':
  35.             Choice1();
  36.             break;
  37.  
  38.         case '2':
  39.             Choice2();
  40.             break;
  41.  
  42.             /* etc...*/
  43.     }
  44.  
  45. }
  46. int main()
  47. {
  48.     while (1)
  49.     {
  50.         DisplayMenu();
  51.         Menu();
  52.     }
  53.  
  54. }
  55.  
I get the following error:


Documents/Arduino/libraries/Stdio/stdio.h:520:23: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
^
compilation terminated.
Error compiling.

this is even after I have changed the stdio.h file and relaunched arduino IDE. I am running on mac os. not sure is that has something to do with it. I noticed when downloading the _mingw.h file that it said it was for windows but it complied and asked me to add <sdkddkver.h> then <sys/types.h>
Apr 9 '15 #7

weaknessforcats
Expert Mod 5K+
P: 9,197
stdio.h is a standard C header. It may be the stdio.h can't be located by the preprocessor.

Are you able to manually locate stdio.h on your computer's disc?
Apr 9 '15 #8

P: 13
I googled it on the web, then i added it to my arduino library under documents/arduino/library/stdio. it looks like it can't find the sys/types.h file. I get from the a message from the arduino IDE after changing the folder name from types to sys/types after adding the library. The IDE message says "The library "sys:types"(even though the header file and the folder name is "sys/types") cannot be used. the message says:

"Library names must contain only basic letters and numbers. (ASCII only and no spaces, and it cannot start with a number)"

I tried changing both the folder and header file to types but it still wants to look for sys/types.
Apr 9 '15 #9

weaknessforcats
Expert Mod 5K+
P: 9,197
Expand|Select|Wrap|Line Numbers
  1. #include <sys/types.h> 
First, is there a file named sys/types.h on your computer?
If not, then find one on the Internet and download it.

Second, #include has two syntaxes.

Expand|Select|Wrap|Line Numbers
  1. #include "sys/types.h"
says to look in the folder with the code being compiled for the file sys/types.h. If the file is not there, terminate the build with a file-not-found error.

Expand|Select|Wrap|Line Numbers
  1. #include <sys/types.h>
says to look for the file in the folder with the code being compiled just like above. Except that, if the file is not found, continue looking along a series of predefined paths. Your IDE has an option where you specify the path (or paths) to the sys/type.h file. If the file is not found along one of these paths, then the build is terminated with a file-not found-error.

Therefore, when using the form <sys/types.h> be sure you have defined the path to the file in your IDE for the project you are building.
Apr 9 '15 #10

P: 13
The file is on my computer. I have tried adding the file multiple times through the add library function in the arduino IDE. and overtime I get the same warning message about the bad file name. It looks like it doesn't like the forward slash. It probably has something to do with me using a mac. I have also tried name it to types and changing the references to types in the header files etc. but arduino IDE keeps asking for the file with the forward slash. but then it won't let me add the library because of the forward slash. Thanks anyway for your help and patience.
Apr 10 '15 #11

weaknessforcats
Expert Mod 5K+
P: 9,197
Can you just rename the file? Like systypes.h then include that:

Expand|Select|Wrap|Line Numbers
  1. #include <systypes.h>
Apr 10 '15 #12

P: 13
That seemed to clear that error......strange how it didn't just work for "types". but now it wants me to add an initialiser to stdio.h file. before 'open' the list of errors is also longer.....


Expand|Select|Wrap|Line Numbers
  1. Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:165:39: error: expected initializer before 'fopen'
  2.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW fopen (const char*, const char*);
  3.                                        ^
  4. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:166:39: error: expected initializer before 'freopen'
  5.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW freopen (const char*, const char*, FILE*);
  6.                                        ^
  7. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:167:37: error: expected initializer before 'fflush'
  8.  _CRTIMP int __cdecl __MINGW_NOTHROW fflush (FILE*);
  9.                                      ^
  10. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:168:37: error: expected initializer before 'fclose'
  11.  _CRTIMP int __cdecl __MINGW_NOTHROW fclose (FILE*);
  12.                                      ^
  13. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:170:37: error: expected initializer before 'remove'
  14.  _CRTIMP int __cdecl __MINGW_NOTHROW remove (const char*);
  15.                                      ^
  16. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:171:37: error: expected initializer before 'rename'
  17.  _CRTIMP int __cdecl __MINGW_NOTHROW rename (const char*, const char*);
  18.                                      ^
  19. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:172:39: error: expected initializer before 'tmpfile'
  20.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW tmpfile (void);
  21.                                        ^
  22. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:173:39: error: expected initializer before 'tmpnam'
  23.  _CRTIMP char* __cdecl __MINGW_NOTHROW tmpnam (char*);
  24.                                        ^
  25. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:176:39: error: expected initializer before '_tempnam'
  26.  _CRTIMP char* __cdecl __MINGW_NOTHROW _tempnam (const char*, const char*);
  27.                                        ^
  28. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:177:37: error: expected initializer before '_rmtmp'
  29.  _CRTIMP int __cdecl __MINGW_NOTHROW _rmtmp(void);
  30.                                      ^
  31. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:178:37: error: expected initializer before '_unlink'
  32.  _CRTIMP int __cdecl __MINGW_NOTHROW _unlink (const char*);
  33.                                      ^
  34. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:181:39: error: expected initializer before 'tempnam'
  35.  _CRTIMP char* __cdecl __MINGW_NOTHROW tempnam (const char*, const char*);
  36.                                        ^
  37. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:182:37: error: expected initializer before 'rmtmp'
  38.  _CRTIMP int __cdecl __MINGW_NOTHROW rmtmp(void);
  39.                                      ^
  40. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:183:37: error: expected initializer before 'unlink'
  41.  _CRTIMP int __cdecl __MINGW_NOTHROW unlink (const char*);
  42.                                      ^
  43. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:187:37: error: expected initializer before 'setvbuf'
  44.  _CRTIMP int __cdecl __MINGW_NOTHROW setvbuf (FILE*, char*, int, size_t);
  45.                                      ^
  46. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:189:38: error: expected initializer before 'setbuf'
  47.  _CRTIMP void __cdecl __MINGW_NOTHROW setbuf (FILE*, char*);
  48.                                       ^
  49. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:200:12: error: expected initializer before '__mingw_fprintf'
  50.  extern int __mingw_stdio_redirect__(fprintf)(FILE*, const char*, ...);
  51.             ^
  52. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:201:12: error: expected initializer before '__mingw_printf'
  53.  extern int __mingw_stdio_redirect__(printf)(const char*, ...);
  54.             ^
  55. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:202:12: error: expected initializer before '__mingw_sprintf'
  56.  extern int __mingw_stdio_redirect__(sprintf)(char*, const char*, ...);
  57.             ^
  58. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:203:12: error: expected initializer before '__mingw_snprintf'
  59.  extern int __mingw_stdio_redirect__(snprintf)(char*, size_t, const char*, ...);
  60.             ^
  61. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:204:12: error: expected initializer before '__mingw_vfprintf'
  62.  extern int __mingw_stdio_redirect__(vfprintf)(FILE*, const char*, __VALIST);
  63.             ^
  64. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:205:12: error: expected initializer before '__mingw_vprintf'
  65.  extern int __mingw_stdio_redirect__(vprintf)(const char*, __VALIST);
  66.             ^
  67. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:206:12: error: expected initializer before '__mingw_vsprintf'
  68.  extern int __mingw_stdio_redirect__(vsprintf)(char*, const char*, __VALIST);
  69.             ^
  70. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:207:12: error: expected initializer before '__mingw_vsnprintf'
  71.  extern int __mingw_stdio_redirect__(vsnprintf)(char*, size_t, const char*, __VALIST);
  72.             ^
  73. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:278:37: error: expected initializer before 'fprintf'
  74.  _CRTIMP int __cdecl __MINGW_NOTHROW fprintf (FILE*, const char*, ...);
  75.                                      ^
  76. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:279:37: error: expected initializer before 'printf'
  77.  _CRTIMP int __cdecl __MINGW_NOTHROW printf (const char*, ...);
  78.                                      ^
  79. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:280:37: error: expected initializer before 'sprintf'
  80.  _CRTIMP int __cdecl __MINGW_NOTHROW sprintf (char*, const char*, ...);
  81.                                      ^
  82. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:281:37: error: expected initializer before 'vfprintf'
  83.  _CRTIMP int __cdecl __MINGW_NOTHROW vfprintf (FILE*, const char*, __VALIST);
  84.                                      ^
  85. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:282:37: error: expected initializer before 'vprintf'
  86.  _CRTIMP int __cdecl __MINGW_NOTHROW vprintf (const char*, __VALIST);
  87.                                      ^
  88. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:283:37: error: expected initializer before 'vsprintf'
  89.  _CRTIMP int __cdecl __MINGW_NOTHROW vsprintf (char*, const char*, __VALIST);
  90.                                      ^
  91. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:294:13: error: expected initializer before '__msvcrt_fprintf'
  92.  _CRTIMP int __mingw_stdio_redirect__(fprintf)(FILE*, const char*, ...);
  93.              ^
  94. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:295:13: error: expected initializer before '__msvcrt_printf'
  95.  _CRTIMP int __mingw_stdio_redirect__(printf)(const char*, ...);
  96.              ^
  97. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:296:13: error: expected initializer before '__msvcrt_sprintf'
  98.  _CRTIMP int __mingw_stdio_redirect__(sprintf)(char*, const char*, ...);
  99.              ^
  100. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:297:13: error: expected initializer before '__msvcrt_vfprintf'
  101.  _CRTIMP int __mingw_stdio_redirect__(vfprintf)(FILE*, const char*, __VALIST);
  102.              ^
  103. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:298:13: error: expected initializer before '__msvcrt_vprintf'
  104.  _CRTIMP int __mingw_stdio_redirect__(vprintf)(const char*, __VALIST);
  105.              ^
  106. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:299:13: error: expected initializer before '__msvcrt_vsprintf'
  107.  _CRTIMP int __mingw_stdio_redirect__(vsprintf)(char*, const char*, __VALIST);
  108.              ^
  109. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:305:37: error: expected initializer before '_snprintf'
  110.  _CRTIMP int __cdecl __MINGW_NOTHROW _snprintf (char*, size_t, const char*, ...);
  111.                                      ^
  112. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:306:37: error: expected initializer before '_vsnprintf'
  113.  _CRTIMP int __cdecl __MINGW_NOTHROW _vsnprintf (char*, size_t, const char*, __VALIST);
  114.                                      ^
  115. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:307:37: error: expected initializer before '_vscprintf'
  116.  _CRTIMP int __cdecl __MINGW_NOTHROW _vscprintf (const char*, __VALIST);
  117.                                      ^
  118. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:317:29: error: expected initializer before 'snprintf'
  119.  int __cdecl __MINGW_NOTHROW snprintf (char *, size_t, const char *, ...);
  120.                              ^
  121. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:318:29: error: expected initializer before 'vsnprintf'
  122.  int __cdecl __MINGW_NOTHROW vsnprintf (char *, size_t, const char *, __VALIST);
  123.                              ^
  124. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:320:29: error: expected initializer before 'vscanf'
  125.  int __cdecl __MINGW_NOTHROW vscanf (const char * __restrict__, __VALIST);
  126.                              ^
  127. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:321:29: error: expected initializer before 'vfscanf'
  128.  int __cdecl __MINGW_NOTHROW vfscanf (FILE * __restrict__, const char * __restrict__,
  129.                              ^
  130. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:323:29: error: expected initializer before 'vsscanf'
  131.  int __cdecl __MINGW_NOTHROW vsscanf (const char * __restrict__,
  132.                              ^
  133. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:332:37: error: expected initializer before 'fscanf'
  134.  _CRTIMP int __cdecl __MINGW_NOTHROW fscanf (FILE*, const char*, ...);
  135.                                      ^
  136. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:333:37: error: expected initializer before 'scanf'
  137.  _CRTIMP int __cdecl __MINGW_NOTHROW scanf (const char*, ...);
  138.                                      ^
  139. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:334:37: error: expected initializer before 'sscanf'
  140.  _CRTIMP int __cdecl __MINGW_NOTHROW sscanf (const char*, const char*, ...);
  141.                                      ^
  142. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:339:37: error: expected initializer before 'fgetc'
  143.  _CRTIMP int __cdecl __MINGW_NOTHROW fgetc (FILE*);
  144.                                      ^
  145. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:340:39: error: expected initializer before 'fgets'
  146.  _CRTIMP char* __cdecl __MINGW_NOTHROW fgets (char*, int, FILE*);
  147.                                        ^
  148. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:341:37: error: expected initializer before 'fputc'
  149.  _CRTIMP int __cdecl __MINGW_NOTHROW fputc (int, FILE*);
  150.                                      ^
  151. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:342:37: error: expected initializer before 'fputs'
  152.  _CRTIMP int __cdecl __MINGW_NOTHROW fputs (const char*, FILE*);
  153.                                      ^
  154. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:343:39: error: expected initializer before 'gets'
  155.  _CRTIMP char* __cdecl __MINGW_NOTHROW gets (char*);
  156.                                        ^
  157. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:344:37: error: expected initializer before 'puts'
  158.  _CRTIMP int __cdecl __MINGW_NOTHROW puts (const char*);
  159.                                      ^
  160. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:345:37: error: expected initializer before 'ungetc'
  161.  _CRTIMP int __cdecl __MINGW_NOTHROW ungetc (int, FILE*);
  162.                                      ^
  163. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:353:37: error: expected initializer before '_filbuf'
  164.  _CRTIMP int __cdecl __MINGW_NOTHROW _filbuf (FILE*);
  165.                                      ^
  166. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:354:37: error: expected initializer before '_flsbuf'
  167.  _CRTIMP int __cdecl __MINGW_NOTHROW _flsbuf (int, FILE*);
  168.                                      ^
  169. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:358:42: error: expected initializer before 'getc'
  170.  __CRT_INLINE int __cdecl __MINGW_NOTHROW getc (FILE*);
  171.                                           ^
  172. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:359:42: error: expected initializer before 'getc'
  173.  __CRT_INLINE int __cdecl __MINGW_NOTHROW getc (FILE* __F)
  174.                                           ^
  175. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:366:42: error: expected initializer before 'putc'
  176.  __CRT_INLINE int __cdecl __MINGW_NOTHROW putc (int, FILE*);
  177.                                           ^
  178. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:367:42: error: expected initializer before 'putc'
  179.  __CRT_INLINE int __cdecl __MINGW_NOTHROW putc (int __c, FILE* __F)
  180.                                           ^
  181. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:374:42: error: expected initializer before 'getchar'
  182.  __CRT_INLINE int __cdecl __MINGW_NOTHROW getchar (void);
  183.                                           ^
  184. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:375:42: error: expected initializer before 'getchar'
  185.  __CRT_INLINE int __cdecl __MINGW_NOTHROW getchar (void)
  186.                                           ^
  187. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:382:42: error: expected initializer before 'putchar'
  188.  __CRT_INLINE int __cdecl __MINGW_NOTHROW putchar(int);
  189.                                           ^
  190. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:383:42: error: expected initializer before 'putchar'
  191.  __CRT_INLINE int __cdecl __MINGW_NOTHROW putchar(int __c)
  192.                                           ^
  193. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:402:40: error: expected initializer before 'fread'
  194.  _CRTIMP size_t __cdecl __MINGW_NOTHROW fread (void*, size_t, size_t, FILE*);
  195.                                         ^
  196. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:403:40: error: expected initializer before 'fwrite'
  197.  _CRTIMP size_t __cdecl __MINGW_NOTHROW fwrite (const void*, size_t, size_t, FILE*);
  198.                                         ^
  199. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:409:37: error: expected initializer before 'fseek'
  200.  _CRTIMP int __cdecl __MINGW_NOTHROW fseek (FILE*, long, int);
  201.                                      ^
  202. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:410:38: error: expected initializer before 'ftell'
  203.  _CRTIMP long __cdecl __MINGW_NOTHROW ftell (FILE*);
  204.                                       ^
  205. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:411:38: error: expected initializer before 'rewind'
  206.  _CRTIMP void __cdecl __MINGW_NOTHROW rewind (FILE*);
  207.                                       ^
  208. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:413:37: error: expected initializer before '_fseek_nolock'
  209.  _CRTIMP int __cdecl __MINGW_NOTHROW _fseek_nolock (FILE*, long, int);
  210.                                      ^
  211. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:414:38: error: expected initializer before '_ftell_nolock'
  212.  _CRTIMP long __cdecl __MINGW_NOTHROW _ftell_nolock (FILE*);
  213.                                       ^
  214. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:416:37: error: expected initializer before '_fseeki64'
  215.  _CRTIMP int __cdecl __MINGW_NOTHROW _fseeki64 (FILE*, __int64, int);
  216.                                      ^
  217. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:417:41: error: expected initializer before '_ftelli64'
  218.  _CRTIMP __int64 __cdecl __MINGW_NOTHROW _ftelli64 (FILE*);
  219.                                          ^
  220. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:418:37: error: expected initializer before '_fseeki64_nolock'
  221.  _CRTIMP int __cdecl __MINGW_NOTHROW _fseeki64_nolock (FILE*, __int64, int);
  222.                                      ^
  223. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:419:41: error: expected initializer before '_ftelli64_nolock'
  224.  _CRTIMP __int64 __cdecl __MINGW_NOTHROW _ftelli64_nolock (FILE*);
  225.                                          ^
  226. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:443:37: error: expected initializer before 'fgetpos'
  227.  _CRTIMP int __cdecl __MINGW_NOTHROW fgetpos (FILE*, fpos_t*);
  228.                                      ^
  229. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:444:37: error: expected initializer before 'fsetpos'
  230.  _CRTIMP int __cdecl __MINGW_NOTHROW fsetpos (FILE*, const fpos_t*);
  231.                                      ^
  232. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:450:37: error: expected initializer before 'feof'
  233.  _CRTIMP int __cdecl __MINGW_NOTHROW feof (FILE*);
  234.                                      ^
  235. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:451:37: error: expected initializer before 'ferror'
  236.  _CRTIMP int __cdecl __MINGW_NOTHROW ferror (FILE*);
  237.                                      ^
  238. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:454:36: error: expected initializer before 'feof'
  239.  inline int __cdecl __MINGW_NOTHROW feof (FILE* __F)
  240.                                     ^
  241. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:456:36: error: expected initializer before 'ferror'
  242.  inline int __cdecl __MINGW_NOTHROW ferror (FILE* __F)
  243.                                     ^
  244. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:463:38: error: expected initializer before 'clearerr'
  245.  _CRTIMP void __cdecl __MINGW_NOTHROW clearerr (FILE*);
  246.                                       ^
  247. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:464:38: error: expected initializer before 'perror'
  248.  _CRTIMP void __cdecl __MINGW_NOTHROW perror (const char*);
  249.                                       ^
  250. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:471:39: error: expected initializer before '_popen'
  251.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _popen (const char*, const char*);
  252.                                        ^
  253. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:472:37: error: expected initializer before '_pclose'
  254.  _CRTIMP int __cdecl __MINGW_NOTHROW _pclose (FILE*);
  255.                                      ^
  256. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:475:39: error: expected initializer before 'popen'
  257.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW popen (const char*, const char*);
  258.                                        ^
  259. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:476:37: error: expected initializer before 'pclose'
  260.  _CRTIMP int __cdecl __MINGW_NOTHROW pclose (FILE*);
  261.                                      ^
  262. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:482:37: error: expected initializer before '_flushall'
  263.  _CRTIMP int __cdecl __MINGW_NOTHROW _flushall (void);
  264.                                      ^
  265. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:483:37: error: expected initializer before '_fgetchar'
  266.  _CRTIMP int __cdecl __MINGW_NOTHROW _fgetchar (void);
  267.                                      ^
  268. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:484:37: error: expected initializer before '_fputchar'
  269.  _CRTIMP int __cdecl __MINGW_NOTHROW _fputchar (int);
  270.                                      ^
  271. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:485:39: error: expected initializer before '_fdopen'
  272.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _fdopen (int, const char*);
  273.                                        ^
  274. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:486:37: error: expected initializer before '_fileno'
  275.  _CRTIMP int __cdecl __MINGW_NOTHROW _fileno (FILE*);
  276.                                      ^
  277. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:487:37: error: expected initializer before '_fcloseall'
  278.  _CRTIMP int __cdecl __MINGW_NOTHROW _fcloseall (void);
  279.                                      ^
  280. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:488:39: error: expected initializer before '_fsopen'
  281.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _fsopen (const char*, const char*, int);
  282.                                        ^
  283. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:489:37: error: expected initializer before '_getmaxstdio'
  284.  _CRTIMP int __cdecl __MINGW_NOTHROW _getmaxstdio (void);
  285.                                      ^
  286. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:490:37: error: expected initializer before '_setmaxstdio'
  287.  _CRTIMP int __cdecl __MINGW_NOTHROW _setmaxstdio (int);
  288.                                      ^
  289. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:508:37: error: expected initializer before 'fgetchar'
  290.  _CRTIMP int __cdecl __MINGW_NOTHROW fgetchar (void);
  291.                                      ^
  292. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:509:37: error: expected initializer before 'fputchar'
  293.  _CRTIMP int __cdecl __MINGW_NOTHROW fputchar (int);
  294.                                      ^
  295. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:510:39: error: expected initializer before 'fdopen'
  296.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW fdopen (int, const char*);
  297.                                        ^
  298. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:511:37: error: expected initializer before 'fileno'
  299.  _CRTIMP int __cdecl __MINGW_NOTHROW fileno (FILE*);
  300.                                      ^
  301. In file included from Menu_2.ino:1:0:
  302. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:521:44: error: expected initializer before 'fopen64'
  303.  __CRT_INLINE FILE* __cdecl __MINGW_NOTHROW fopen64 (const char*, const char*);
  304.                                             ^
  305. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:522:44: error: expected initializer before 'fopen64'
  306.  __CRT_INLINE FILE* __cdecl __MINGW_NOTHROW fopen64 (const char* filename, const char* mode)
  307.                                             ^
  308. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:527:29: error: expected initializer before 'fseeko64'
  309.  int __cdecl __MINGW_NOTHROW fseeko64 (FILE*, off64_t, int);
  310.                              ^
  311. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:534:46: error: expected initializer before 'ftello64'
  312.  __CRT_INLINE off64_t __cdecl __MINGW_NOTHROW ftello64 (FILE *);
  313.                                               ^
  314. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:535:46: error: expected initializer before 'ftello64'
  315.  __CRT_INLINE off64_t __cdecl __MINGW_NOTHROW ftello64 (FILE * stream)
  316.                                               ^
  317. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:551:37: error: expected initializer before 'fwprintf'
  318.  _CRTIMP int __cdecl __MINGW_NOTHROW fwprintf (FILE*, const wchar_t*, ...);
  319.                                      ^
  320. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:552:37: error: expected initializer before 'wprintf'
  321.  _CRTIMP int __cdecl __MINGW_NOTHROW wprintf (const wchar_t*, ...);
  322.                                      ^
  323. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:553:37: error: expected initializer before '_snwprintf'
  324.  _CRTIMP int __cdecl __MINGW_NOTHROW _snwprintf (wchar_t*, size_t, const wchar_t*, ...);
  325.                                      ^
  326. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:554:37: error: expected initializer before 'vfwprintf'
  327.  _CRTIMP int __cdecl __MINGW_NOTHROW vfwprintf (FILE*, const wchar_t*, __VALIST);
  328.                                      ^
  329. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:555:37: error: expected initializer before 'vwprintf'
  330.  _CRTIMP int __cdecl __MINGW_NOTHROW vwprintf (const wchar_t*, __VALIST);
  331.                                      ^
  332. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:556:37: error: expected initializer before '_vsnwprintf'
  333.  _CRTIMP int __cdecl __MINGW_NOTHROW _vsnwprintf (wchar_t*, size_t, const wchar_t*, __VALIST);
  334.                                      ^
  335. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:557:37: error: expected initializer before '_vscwprintf'
  336.  _CRTIMP int __cdecl __MINGW_NOTHROW _vscwprintf (const wchar_t*, __VALIST);
  337.                                      ^
  338. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:558:37: error: expected initializer before 'fwscanf'
  339.  _CRTIMP int __cdecl __MINGW_NOTHROW fwscanf (FILE*, const wchar_t*, ...);
  340.                                      ^
  341. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:559:37: error: expected initializer before 'wscanf'
  342.  _CRTIMP int __cdecl __MINGW_NOTHROW wscanf (const wchar_t*, ...);
  343.                                      ^
  344. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:560:37: error: expected initializer before 'swscanf'
  345.  _CRTIMP int __cdecl __MINGW_NOTHROW swscanf (const wchar_t*, const wchar_t*, ...);
  346.                                      ^
  347. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:561:40: error: expected initializer before 'fgetwc'
  348.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW fgetwc (FILE*);
  349.                                         ^
  350. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:562:40: error: expected initializer before 'fputwc'
  351.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW fputwc (wchar_t, FILE*);
  352.                                         ^
  353. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:563:40: error: expected initializer before 'ungetwc'
  354.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW ungetwc (wchar_t, FILE*);
  355.                                         ^
  356. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:567:37: error: expected initializer before 'swprintf'
  357.  _CRTIMP int __cdecl __MINGW_NOTHROW swprintf (wchar_t*, const wchar_t*, ...);
  358.                                      ^
  359. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:568:37: error: expected initializer before 'vswprintf'
  360.  _CRTIMP int __cdecl __MINGW_NOTHROW vswprintf (wchar_t*, const wchar_t*, __VALIST);
  361.                                      ^
  362. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:571:42: error: expected initializer before 'fgetws'
  363.  _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW fgetws (wchar_t*, int, FILE*);
  364.                                           ^
  365. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:572:37: error: expected initializer before 'fputws'
  366.  _CRTIMP int __cdecl __MINGW_NOTHROW fputws (const wchar_t*, FILE*);
  367.                                      ^
  368. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:573:40: error: expected initializer before 'getwc'
  369.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW getwc (FILE*);
  370.                                         ^
  371. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:574:40: error: expected initializer before 'getwchar'
  372.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW getwchar (void);
  373.                                         ^
  374. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:575:40: error: expected initializer before 'putwc'
  375.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwc (wint_t, FILE*);
  376.                                         ^
  377. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:576:40: error: expected initializer before 'putwchar'
  378.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwchar (wint_t);
  379.                                         ^
  380. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:578:38: error: expected initializer before '_lock_file'
  381.  _CRTIMP void __cdecl __MINGW_NOTHROW _lock_file(FILE*);
  382.                                       ^
  383. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:579:38: error: expected initializer before '_unlock_file'
  384.  _CRTIMP void __cdecl __MINGW_NOTHROW _unlock_file(FILE*);
  385.                                       ^
  386. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:580:42: error: expected initializer before '_getws'
  387.  _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _getws (wchar_t*);
  388.                                           ^
  389. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:581:37: error: expected initializer before '_putws'
  390.  _CRTIMP int __cdecl __MINGW_NOTHROW _putws (const wchar_t*);
  391.                                      ^
  392. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:582:39: error: expected initializer before '_wfdopen'
  393.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfdopen(int, const wchar_t *);
  394.                                        ^
  395. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:583:39: error: expected initializer before '_wfopen'
  396.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfopen (const wchar_t*, const wchar_t*);
  397.                                        ^
  398. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:584:39: error: expected initializer before '_wfreopen'
  399.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfreopen (const wchar_t*, const wchar_t*, FILE*);
  400.                                        ^
  401. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:585:39: error: expected initializer before '_wfsopen'
  402.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfsopen (const wchar_t*, const wchar_t*, int);
  403.                                        ^
  404. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:586:42: error: expected initializer before '_wtmpnam'
  405.  _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wtmpnam (wchar_t*);
  406.                                           ^
  407. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:587:42: error: expected initializer before '_wtempnam'
  408.  _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wtempnam (const wchar_t*, const wchar_t*);
  409.                                           ^
  410. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:588:37: error: expected initializer before '_wrename'
  411.  _CRTIMP int __cdecl __MINGW_NOTHROW _wrename (const wchar_t*, const wchar_t*);
  412.                                      ^
  413. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:589:37: error: expected initializer before '_wremove'
  414.  _CRTIMP int __cdecl __MINGW_NOTHROW _wremove (const wchar_t*);
  415.                                      ^
  416. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:590:38: error: expected initializer before '_wperror'
  417.  _CRTIMP void __cdecl __MINGW_NOTHROW _wperror (const wchar_t*);
  418.                                       ^
  419. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:591:39: error: expected initializer before '_wpopen'
  420.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wpopen (const wchar_t*, const wchar_t*);
  421.                                        ^
  422. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:595:29: error: expected initializer before 'snwprintf'
  423.  int __cdecl __MINGW_NOTHROW snwprintf (wchar_t* s, size_t n, const wchar_t*  format, ...);
  424.                              ^
  425. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:596:29: error: expected initializer before 'vsnwprintf'
  426.  int __cdecl __MINGW_NOTHROW vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg);
  427.                              ^
  428. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:599:1: error: expected initializer before 'vsnwprintf'
  429.  vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg)
  430.  ^
  431. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:602:29: error: expected initializer before 'vwscanf'
  432.  int __cdecl __MINGW_NOTHROW vwscanf (const wchar_t * __restrict__, __VALIST);
  433.                              ^
  434. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:603:29: error: expected initializer before 'vfwscanf'
  435.  int __cdecl __MINGW_NOTHROW vfwscanf (FILE * __restrict__,
  436.                              ^
  437. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:605:29: error: expected initializer before 'vswscanf'
  438.  int __cdecl __MINGW_NOTHROW vswscanf (const wchar_t * __restrict__,
  439.                              ^
  440. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:614:39: error: expected initializer before 'wpopen'
  441.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW wpopen (const wchar_t*, const wchar_t*);
  442.                                        ^
  443. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:620:40: error: expected initializer before '_fgetwchar'
  444.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW _fgetwchar (void);
  445.                                         ^
  446. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:621:40: error: expected initializer before '_fputwchar'
  447.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW _fputwchar (wint_t);
  448.                                         ^
  449. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:622:37: error: expected initializer before '_getw'
  450.  _CRTIMP int __cdecl __MINGW_NOTHROW _getw (FILE*);
  451.                                      ^
  452. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:623:37: error: expected initializer before '_putw'
  453.  _CRTIMP int __cdecl __MINGW_NOTHROW _putw (int, FILE*);
  454.                                      ^
  455. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:626:40: error: expected initializer before 'fgetwchar'
  456.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW fgetwchar (void);
  457.                                         ^
  458. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:627:40: error: expected initializer before 'fputwchar'
  459.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW fputwchar (wint_t);
  460.                                         ^
  461. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:628:37: error: expected initializer before 'getw'
  462.  _CRTIMP int __cdecl __MINGW_NOTHROW getw (FILE*);
  463.                                      ^
  464. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:629:37: error: expected initializer before 'putw'
  465.  _CRTIMP int __cdecl __MINGW_NOTHROW putw (int, FILE*);
  466.                                      ^
  467. Menu_2.ino: In function 'char GetChoice()':
  468. Menu_2.ino:25:24: error: 'scanf' was not declared in this scope
  469. Error compiling.
  470.  
Apr 10 '15 #13

weaknessforcats
Expert Mod 5K+
P: 9,197
I'm not an Arduino person, or gcc either. Bit I did a little web research and found a reference to a _mingw.h.

Header files contain macros, like __MINGW_NOTHROW ,so you might try doing a #include <_mingw.h> as your first #include and see f this helps.
Apr 10 '15 #14

P: 13
I changed the _mingw.h file to #include<_mingw.h> it now says:


Expand|Select|Wrap|Line Numbers
  1.  from /Users/affinity/Documents/Arduino/libraries/minGW/_mingw.h:31,
  2.                  from /Users/affinity/Documents/Arduino/libraries/minGW/_mingw.h:31,
  3.                  from /Users/affinity/Documents/Arduino/libraries/minGW/_mingw.h:31,
  4.                  from /Users/affinity/Documents/Arduino/libraries/minGW/_mingw.h:31,
  5.                  from /Users/affinity/Documents/Arduino/libraries/minGW/_mingw.h:31,
  6.                  from /Users/affinity/Documents/Arduino/libraries/minGW/_mingw.h:31,
  7.                  from /Users/affinity/Documents/Arduino/libraries/minGW/_mingw.h:31,
  8.                  from /Users/affinity/Documents/Arduino/libraries/minGW/_mingw.h:31,
  9.                  from /Users/affinity/Documents/Arduino/libraries/systypes/systypes.h:27,
  10.                  from /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:520,
  11.                  from Menu_2.ino:2:
  12. /Users/affinity/Documents/Arduino/libraries/minGW/_mingw.h:31:20: error: #include nested too deeply
  13.  #include <_mingw.h>
  14.                     ^
  15. In file included from Menu_2.ino:2:0:
  16. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:165:39: error: expected initializer before 'fopen'
  17.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW fopen (const char*, const char*);
  18.                                        ^
  19. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:166:39: error: expected initializer before 'freopen'
  20.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW freopen (const char*, const char*, FILE*);
  21.                                        ^
  22. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:167:37: error: expected initializer before 'fflush'
  23.  _CRTIMP int __cdecl __MINGW_NOTHROW fflush (FILE*);
  24.                                      ^
  25. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:168:37: error: expected initializer before 'fclose'
  26.  _CRTIMP int __cdecl __MINGW_NOTHROW fclose (FILE*);
  27.                                      ^
  28. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:170:37: error: expected initializer before 'remove'
  29.  _CRTIMP int __cdecl __MINGW_NOTHROW remove (const char*);
  30.                                      ^
  31. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:171:37: error: expected initializer before 'rename'
  32.  _CRTIMP int __cdecl __MINGW_NOTHROW rename (const char*, const char*);
  33.                                      ^
  34. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:172:39: error: expected initializer before 'tmpfile'
  35.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW tmpfile (void);
  36.                                        ^
  37. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:173:39: error: expected initializer before 'tmpnam'
  38.  _CRTIMP char* __cdecl __MINGW_NOTHROW tmpnam (char*);
  39.                                        ^
  40. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:176:39: error: expected initializer before '_tempnam'
  41.  _CRTIMP char* __cdecl __MINGW_NOTHROW _tempnam (const char*, const char*);
  42.                                        ^
  43. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:177:37: error: expected initializer before '_rmtmp'
  44.  _CRTIMP int __cdecl __MINGW_NOTHROW _rmtmp(void);
  45.                                      ^
  46. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:178:37: error: expected initializer before '_unlink'
  47.  _CRTIMP int __cdecl __MINGW_NOTHROW _unlink (const char*);
  48.                                      ^
  49. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:181:39: error: expected initializer before 'tempnam'
  50.  _CRTIMP char* __cdecl __MINGW_NOTHROW tempnam (const char*, const char*);
  51.                                        ^
  52. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:182:37: error: expected initializer before 'rmtmp'
  53.  _CRTIMP int __cdecl __MINGW_NOTHROW rmtmp(void);
  54.                                      ^
  55. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:183:37: error: expected initializer before 'unlink'
  56.  _CRTIMP int __cdecl __MINGW_NOTHROW unlink (const char*);
  57.                                      ^
  58. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:187:37: error: expected initializer before 'setvbuf'
  59.  _CRTIMP int __cdecl __MINGW_NOTHROW setvbuf (FILE*, char*, int, size_t);
  60.                                      ^
  61. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:189:38: error: expected initializer before 'setbuf'
  62.  _CRTIMP void __cdecl __MINGW_NOTHROW setbuf (FILE*, char*);
  63.                                       ^
  64. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:200:12: error: expected initializer before '__mingw_fprintf'
  65.  extern int __mingw_stdio_redirect__(fprintf)(FILE*, const char*, ...);
  66.             ^
  67. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:201:12: error: expected initializer before '__mingw_printf'
  68.  extern int __mingw_stdio_redirect__(printf)(const char*, ...);
  69.             ^
  70. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:202:12: error: expected initializer before '__mingw_sprintf'
  71.  extern int __mingw_stdio_redirect__(sprintf)(char*, const char*, ...);
  72.             ^
  73. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:203:12: error: expected initializer before '__mingw_snprintf'
  74.  extern int __mingw_stdio_redirect__(snprintf)(char*, size_t, const char*, ...);
  75.             ^
  76. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:204:12: error: expected initializer before '__mingw_vfprintf'
  77.  extern int __mingw_stdio_redirect__(vfprintf)(FILE*, const char*, __VALIST);
  78.             ^
  79. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:205:12: error: expected initializer before '__mingw_vprintf'
  80.  extern int __mingw_stdio_redirect__(vprintf)(const char*, __VALIST);
  81.             ^
  82. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:206:12: error: expected initializer before '__mingw_vsprintf'
  83.  extern int __mingw_stdio_redirect__(vsprintf)(char*, const char*, __VALIST);
  84.             ^
  85. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:207:12: error: expected initializer before '__mingw_vsnprintf'
  86.  extern int __mingw_stdio_redirect__(vsnprintf)(char*, size_t, const char*, __VALIST);
  87.             ^
  88. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:278:37: error: expected initializer before 'fprintf'
  89.  _CRTIMP int __cdecl __MINGW_NOTHROW fprintf (FILE*, const char*, ...);
  90.                                      ^
  91. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:279:37: error: expected initializer before 'printf'
  92.  _CRTIMP int __cdecl __MINGW_NOTHROW printf (const char*, ...);
  93.                                      ^
  94. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:280:37: error: expected initializer before 'sprintf'
  95.  _CRTIMP int __cdecl __MINGW_NOTHROW sprintf (char*, const char*, ...);
  96.                                      ^
  97. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:281:37: error: expected initializer before 'vfprintf'
  98.  _CRTIMP int __cdecl __MINGW_NOTHROW vfprintf (FILE*, const char*, __VALIST);
  99.                                      ^
  100. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:282:37: error: expected initializer before 'vprintf'
  101.  _CRTIMP int __cdecl __MINGW_NOTHROW vprintf (const char*, __VALIST);
  102.                                      ^
  103. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:283:37: error: expected initializer before 'vsprintf'
  104.  _CRTIMP int __cdecl __MINGW_NOTHROW vsprintf (char*, const char*, __VALIST);
  105.                                      ^
  106. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:294:13: error: expected initializer before '__msvcrt_fprintf'
  107.  _CRTIMP int __mingw_stdio_redirect__(fprintf)(FILE*, const char*, ...);
  108.              ^
  109. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:295:13: error: expected initializer before '__msvcrt_printf'
  110.  _CRTIMP int __mingw_stdio_redirect__(printf)(const char*, ...);
  111.              ^
  112. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:296:13: error: expected initializer before '__msvcrt_sprintf'
  113.  _CRTIMP int __mingw_stdio_redirect__(sprintf)(char*, const char*, ...);
  114.              ^
  115. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:297:13: error: expected initializer before '__msvcrt_vfprintf'
  116.  _CRTIMP int __mingw_stdio_redirect__(vfprintf)(FILE*, const char*, __VALIST);
  117.              ^
  118. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:298:13: error: expected initializer before '__msvcrt_vprintf'
  119.  _CRTIMP int __mingw_stdio_redirect__(vprintf)(const char*, __VALIST);
  120.              ^
  121. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:299:13: error: expected initializer before '__msvcrt_vsprintf'
  122.  _CRTIMP int __mingw_stdio_redirect__(vsprintf)(char*, const char*, __VALIST);
  123.              ^
  124. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:305:37: error: expected initializer before '_snprintf'
  125.  _CRTIMP int __cdecl __MINGW_NOTHROW _snprintf (char*, size_t, const char*, ...);
  126.                                      ^
  127. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:306:37: error: expected initializer before '_vsnprintf'
  128.  _CRTIMP int __cdecl __MINGW_NOTHROW _vsnprintf (char*, size_t, const char*, __VALIST);
  129.                                      ^
  130. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:307:37: error: expected initializer before '_vscprintf'
  131.  _CRTIMP int __cdecl __MINGW_NOTHROW _vscprintf (const char*, __VALIST);
  132.                                      ^
  133. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:317:29: error: expected initializer before 'snprintf'
  134.  int __cdecl __MINGW_NOTHROW snprintf (char *, size_t, const char *, ...);
  135.                              ^
  136. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:318:29: error: expected initializer before 'vsnprintf'
  137.  int __cdecl __MINGW_NOTHROW vsnprintf (char *, size_t, const char *, __VALIST);
  138.                              ^
  139. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:320:29: error: expected initializer before 'vscanf'
  140.  int __cdecl __MINGW_NOTHROW vscanf (const char * __restrict__, __VALIST);
  141.                              ^
  142. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:321:29: error: expected initializer before 'vfscanf'
  143.  int __cdecl __MINGW_NOTHROW vfscanf (FILE * __restrict__, const char * __restrict__,
  144.                              ^
  145. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:323:29: error: expected initializer before 'vsscanf'
  146.  int __cdecl __MINGW_NOTHROW vsscanf (const char * __restrict__,
  147.                              ^
  148. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:332:37: error: expected initializer before 'fscanf'
  149.  _CRTIMP int __cdecl __MINGW_NOTHROW fscanf (FILE*, const char*, ...);
  150.                                      ^
  151. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:333:37: error: expected initializer before 'scanf'
  152.  _CRTIMP int __cdecl __MINGW_NOTHROW scanf (const char*, ...);
  153.                                      ^
  154. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:334:37: error: expected initializer before 'sscanf'
  155.  _CRTIMP int __cdecl __MINGW_NOTHROW sscanf (const char*, const char*, ...);
  156.                                      ^
  157. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:339:37: error: expected initializer before 'fgetc'
  158.  _CRTIMP int __cdecl __MINGW_NOTHROW fgetc (FILE*);
  159.                                      ^
  160. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:340:39: error: expected initializer before 'fgets'
  161.  _CRTIMP char* __cdecl __MINGW_NOTHROW fgets (char*, int, FILE*);
  162.                                        ^
  163. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:341:37: error: expected initializer before 'fputc'
  164.  _CRTIMP int __cdecl __MINGW_NOTHROW fputc (int, FILE*);
  165.                                      ^
  166. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:342:37: error: expected initializer before 'fputs'
  167.  _CRTIMP int __cdecl __MINGW_NOTHROW fputs (const char*, FILE*);
  168.                                      ^
  169. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:343:39: error: expected initializer before 'gets'
  170.  _CRTIMP char* __cdecl __MINGW_NOTHROW gets (char*);
  171.                                        ^
  172. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:344:37: error: expected initializer before 'puts'
  173.  _CRTIMP int __cdecl __MINGW_NOTHROW puts (const char*);
  174.                                      ^
  175. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:345:37: error: expected initializer before 'ungetc'
  176.  _CRTIMP int __cdecl __MINGW_NOTHROW ungetc (int, FILE*);
  177.                                      ^
  178. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:353:37: error: expected initializer before '_filbuf'
  179.  _CRTIMP int __cdecl __MINGW_NOTHROW _filbuf (FILE*);
  180.                                      ^
  181. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:354:37: error: expected initializer before '_flsbuf'
  182.  _CRTIMP int __cdecl __MINGW_NOTHROW _flsbuf (int, FILE*);
  183.                                      ^
  184. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:358:42: error: expected initializer before 'getc'
  185.  __CRT_INLINE int __cdecl __MINGW_NOTHROW getc (FILE*);
  186.                                           ^
  187. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:359:42: error: expected initializer before 'getc'
  188.  __CRT_INLINE int __cdecl __MINGW_NOTHROW getc (FILE* __F)
  189.                                           ^
  190. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:366:42: error: expected initializer before 'putc'
  191.  __CRT_INLINE int __cdecl __MINGW_NOTHROW putc (int, FILE*);
  192.                                           ^
  193. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:367:42: error: expected initializer before 'putc'
  194.  __CRT_INLINE int __cdecl __MINGW_NOTHROW putc (int __c, FILE* __F)
  195.                                           ^
  196. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:374:42: error: expected initializer before 'getchar'
  197.  __CRT_INLINE int __cdecl __MINGW_NOTHROW getchar (void);
  198.                                           ^
  199. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:375:42: error: expected initializer before 'getchar'
  200.  __CRT_INLINE int __cdecl __MINGW_NOTHROW getchar (void)
  201.                                           ^
  202. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:382:42: error: expected initializer before 'putchar'
  203.  __CRT_INLINE int __cdecl __MINGW_NOTHROW putchar(int);
  204.                                           ^
  205. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:383:42: error: expected initializer before 'putchar'
  206.  __CRT_INLINE int __cdecl __MINGW_NOTHROW putchar(int __c)
  207.                                           ^
  208. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:402:40: error: expected initializer before 'fread'
  209.  _CRTIMP size_t __cdecl __MINGW_NOTHROW fread (void*, size_t, size_t, FILE*);
  210.                                         ^
  211. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:403:40: error: expected initializer before 'fwrite'
  212.  _CRTIMP size_t __cdecl __MINGW_NOTHROW fwrite (const void*, size_t, size_t, FILE*);
  213.                                         ^
  214. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:409:37: error: expected initializer before 'fseek'
  215.  _CRTIMP int __cdecl __MINGW_NOTHROW fseek (FILE*, long, int);
  216.                                      ^
  217. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:410:38: error: expected initializer before 'ftell'
  218.  _CRTIMP long __cdecl __MINGW_NOTHROW ftell (FILE*);
  219.                                       ^
  220. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:411:38: error: expected initializer before 'rewind'
  221.  _CRTIMP void __cdecl __MINGW_NOTHROW rewind (FILE*);
  222.                                       ^
  223. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:413:37: error: expected initializer before '_fseek_nolock'
  224.  _CRTIMP int __cdecl __MINGW_NOTHROW _fseek_nolock (FILE*, long, int);
  225.                                      ^
  226. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:414:38: error: expected initializer before '_ftell_nolock'
  227.  _CRTIMP long __cdecl __MINGW_NOTHROW _ftell_nolock (FILE*);
  228.                                       ^
  229. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:416:37: error: expected initializer before '_fseeki64'
  230.  _CRTIMP int __cdecl __MINGW_NOTHROW _fseeki64 (FILE*, __int64, int);
  231.                                      ^
  232. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:417:41: error: expected initializer before '_ftelli64'
  233.  _CRTIMP __int64 __cdecl __MINGW_NOTHROW _ftelli64 (FILE*);
  234.                                          ^
  235. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:418:37: error: expected initializer before '_fseeki64_nolock'
  236.  _CRTIMP int __cdecl __MINGW_NOTHROW _fseeki64_nolock (FILE*, __int64, int);
  237.                                      ^
  238. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:419:41: error: expected initializer before '_ftelli64_nolock'
  239.  _CRTIMP __int64 __cdecl __MINGW_NOTHROW _ftelli64_nolock (FILE*);
  240.                                          ^
  241. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:443:37: error: expected initializer before 'fgetpos'
  242.  _CRTIMP int __cdecl __MINGW_NOTHROW fgetpos (FILE*, fpos_t*);
  243.                                      ^
  244. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:444:37: error: expected initializer before 'fsetpos'
  245.  _CRTIMP int __cdecl __MINGW_NOTHROW fsetpos (FILE*, const fpos_t*);
  246.                                      ^
  247. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:450:37: error: expected initializer before 'feof'
  248.  _CRTIMP int __cdecl __MINGW_NOTHROW feof (FILE*);
  249.                                      ^
  250. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:451:37: error: expected initializer before 'ferror'
  251.  _CRTIMP int __cdecl __MINGW_NOTHROW ferror (FILE*);
  252.                                      ^
  253. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:454:36: error: expected initializer before 'feof'
  254.  inline int __cdecl __MINGW_NOTHROW feof (FILE* __F)
  255.                                     ^
  256. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:456:36: error: expected initializer before 'ferror'
  257.  inline int __cdecl __MINGW_NOTHROW ferror (FILE* __F)
  258.                                     ^
  259. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:463:38: error: expected initializer before 'clearerr'
  260.  _CRTIMP void __cdecl __MINGW_NOTHROW clearerr (FILE*);
  261.                                       ^
  262. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:464:38: error: expected initializer before 'perror'
  263.  _CRTIMP void __cdecl __MINGW_NOTHROW perror (const char*);
  264.                                       ^
  265. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:471:39: error: expected initializer before '_popen'
  266.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _popen (const char*, const char*);
  267.                                        ^
  268. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:472:37: error: expected initializer before '_pclose'
  269.  _CRTIMP int __cdecl __MINGW_NOTHROW _pclose (FILE*);
  270.                                      ^
  271. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:475:39: error: expected initializer before 'popen'
  272.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW popen (const char*, const char*);
  273.                                        ^
  274. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:476:37: error: expected initializer before 'pclose'
  275.  _CRTIMP int __cdecl __MINGW_NOTHROW pclose (FILE*);
  276.                                      ^
  277. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:482:37: error: expected initializer before '_flushall'
  278.  _CRTIMP int __cdecl __MINGW_NOTHROW _flushall (void);
  279.                                      ^
  280. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:483:37: error: expected initializer before '_fgetchar'
  281.  _CRTIMP int __cdecl __MINGW_NOTHROW _fgetchar (void);
  282.                                      ^
  283. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:484:37: error: expected initializer before '_fputchar'
  284.  _CRTIMP int __cdecl __MINGW_NOTHROW _fputchar (int);
  285.                                      ^
  286. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:485:39: error: expected initializer before '_fdopen'
  287.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _fdopen (int, const char*);
  288.                                        ^
  289. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:486:37: error: expected initializer before '_fileno'
  290.  _CRTIMP int __cdecl __MINGW_NOTHROW _fileno (FILE*);
  291.                                      ^
  292. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:487:37: error: expected initializer before '_fcloseall'
  293.  _CRTIMP int __cdecl __MINGW_NOTHROW _fcloseall (void);
  294.                                      ^
  295. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:488:39: error: expected initializer before '_fsopen'
  296.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _fsopen (const char*, const char*, int);
  297.                                        ^
  298. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:489:37: error: expected initializer before '_getmaxstdio'
  299.  _CRTIMP int __cdecl __MINGW_NOTHROW _getmaxstdio (void);
  300.                                      ^
  301. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:490:37: error: expected initializer before '_setmaxstdio'
  302.  _CRTIMP int __cdecl __MINGW_NOTHROW _setmaxstdio (int);
  303.                                      ^
  304. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:493:46: error: expected initializer before '_get_output_format'
  305.  _CRTIMP unsigned int __cdecl __MINGW_NOTHROW _get_output_format (void);
  306.                                               ^
  307. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:494:46: error: expected initializer before '_set_output_format'
  308.  _CRTIMP unsigned int __cdecl __MINGW_NOTHROW _set_output_format (unsigned int);
  309.                                               ^
  310. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:495:37: error: expected initializer before '_get_printf_count_output'
  311.  _CRTIMP int __cdecl __MINGW_NOTHROW _get_printf_count_output (void);
  312.                                      ^
  313. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:496:37: error: expected initializer before '_set_printf_count_output'
  314.  _CRTIMP int __cdecl __MINGW_NOTHROW _set_printf_count_output (int);
  315.                                      ^
  316. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:508:37: error: expected initializer before 'fgetchar'
  317.  _CRTIMP int __cdecl __MINGW_NOTHROW fgetchar (void);
  318.                                      ^
  319. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:509:37: error: expected initializer before 'fputchar'
  320.  _CRTIMP int __cdecl __MINGW_NOTHROW fputchar (int);
  321.                                      ^
  322. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:510:39: error: expected initializer before 'fdopen'
  323.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW fdopen (int, const char*);
  324.                                        ^
  325. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:511:37: error: expected initializer before 'fileno'
  326.  _CRTIMP int __cdecl __MINGW_NOTHROW fileno (FILE*);
  327.                                      ^
  328. In file included from Menu_2.ino:2:0:
  329. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:521:44: error: expected initializer before 'fopen64'
  330.  __CRT_INLINE FILE* __cdecl __MINGW_NOTHROW fopen64 (const char*, const char*);
  331.                                             ^
  332. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:522:44: error: expected initializer before 'fopen64'
  333.  __CRT_INLINE FILE* __cdecl __MINGW_NOTHROW fopen64 (const char* filename, const char* mode)
  334.                                             ^
  335. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:527:29: error: expected initializer before 'fseeko64'
  336.  int __cdecl __MINGW_NOTHROW fseeko64 (FILE*, off64_t, int);
  337.                              ^
  338. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:534:46: error: expected initializer before 'ftello64'
  339.  __CRT_INLINE off64_t __cdecl __MINGW_NOTHROW ftello64 (FILE *);
  340.                                               ^
  341. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:535:46: error: expected initializer before 'ftello64'
  342.  __CRT_INLINE off64_t __cdecl __MINGW_NOTHROW ftello64 (FILE * stream)
  343.                                               ^
  344. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:551:37: error: expected initializer before 'fwprintf'
  345.  _CRTIMP int __cdecl __MINGW_NOTHROW fwprintf (FILE*, const wchar_t*, ...);
  346.                                      ^
  347. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:552:37: error: expected initializer before 'wprintf'
  348.  _CRTIMP int __cdecl __MINGW_NOTHROW wprintf (const wchar_t*, ...);
  349.                                      ^
  350. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:553:37: error: expected initializer before '_snwprintf'
  351.  _CRTIMP int __cdecl __MINGW_NOTHROW _snwprintf (wchar_t*, size_t, const wchar_t*, ...);
  352.                                      ^
  353. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:554:37: error: expected initializer before 'vfwprintf'
  354.  _CRTIMP int __cdecl __MINGW_NOTHROW vfwprintf (FILE*, const wchar_t*, __VALIST);
  355.                                      ^
  356. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:555:37: error: expected initializer before 'vwprintf'
  357.  _CRTIMP int __cdecl __MINGW_NOTHROW vwprintf (const wchar_t*, __VALIST);
  358.                                      ^
  359. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:556:37: error: expected initializer before '_vsnwprintf'
  360.  _CRTIMP int __cdecl __MINGW_NOTHROW _vsnwprintf (wchar_t*, size_t, const wchar_t*, __VALIST);
  361.                                      ^
  362. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:557:37: error: expected initializer before '_vscwprintf'
  363.  _CRTIMP int __cdecl __MINGW_NOTHROW _vscwprintf (const wchar_t*, __VALIST);
  364.                                      ^
  365. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:558:37: error: expected initializer before 'fwscanf'
  366.  _CRTIMP int __cdecl __MINGW_NOTHROW fwscanf (FILE*, const wchar_t*, ...);
  367.                                      ^
  368. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:559:37: error: expected initializer before 'wscanf'
  369.  _CRTIMP int __cdecl __MINGW_NOTHROW wscanf (const wchar_t*, ...);
  370.                                      ^
  371. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:560:37: error: expected initializer before 'swscanf'
  372.  _CRTIMP int __cdecl __MINGW_NOTHROW swscanf (const wchar_t*, const wchar_t*, ...);
  373.                                      ^
  374. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:561:40: error: expected initializer before 'fgetwc'
  375.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW fgetwc (FILE*);
  376.                                         ^
  377. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:562:40: error: expected initializer before 'fputwc'
  378.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW fputwc (wchar_t, FILE*);
  379.                                         ^
  380. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:563:40: error: expected initializer before 'ungetwc'
  381.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW ungetwc (wchar_t, FILE*);
  382.                                         ^
  383. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:567:37: error: expected initializer before 'swprintf'
  384.  _CRTIMP int __cdecl __MINGW_NOTHROW swprintf (wchar_t*, const wchar_t*, ...);
  385.                                      ^
  386. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:568:37: error: expected initializer before 'vswprintf'
  387.  _CRTIMP int __cdecl __MINGW_NOTHROW vswprintf (wchar_t*, const wchar_t*, __VALIST);
  388.                                      ^
  389. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:571:42: error: expected initializer before 'fgetws'
  390.  _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW fgetws (wchar_t*, int, FILE*);
  391.                                           ^
  392. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:572:37: error: expected initializer before 'fputws'
  393.  _CRTIMP int __cdecl __MINGW_NOTHROW fputws (const wchar_t*, FILE*);
  394.                                      ^
  395. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:573:40: error: expected initializer before 'getwc'
  396.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW getwc (FILE*);
  397.                                         ^
  398. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:574:40: error: expected initializer before 'getwchar'
  399.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW getwchar (void);
  400.                                         ^
  401. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:575:40: error: expected initializer before 'putwc'
  402.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwc (wint_t, FILE*);
  403.                                         ^
  404. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:576:40: error: expected initializer before 'putwchar'
  405.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwchar (wint_t);
  406.                                         ^
  407. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:578:38: error: expected initializer before '_lock_file'
  408.  _CRTIMP void __cdecl __MINGW_NOTHROW _lock_file(FILE*);
  409.                                       ^
  410. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:579:38: error: expected initializer before '_unlock_file'
  411.  _CRTIMP void __cdecl __MINGW_NOTHROW _unlock_file(FILE*);
  412.                                       ^
  413. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:580:42: error: expected initializer before '_getws'
  414.  _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _getws (wchar_t*);
  415.                                           ^
  416. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:581:37: error: expected initializer before '_putws'
  417.  _CRTIMP int __cdecl __MINGW_NOTHROW _putws (const wchar_t*);
  418.                                      ^
  419. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:582:39: error: expected initializer before '_wfdopen'
  420.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfdopen(int, const wchar_t *);
  421.                                        ^
  422. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:583:39: error: expected initializer before '_wfopen'
  423.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfopen (const wchar_t*, const wchar_t*);
  424.                                        ^
  425. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:584:39: error: expected initializer before '_wfreopen'
  426.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfreopen (const wchar_t*, const wchar_t*, FILE*);
  427.                                        ^
  428. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:585:39: error: expected initializer before '_wfsopen'
  429.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfsopen (const wchar_t*, const wchar_t*, int);
  430.                                        ^
  431. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:586:42: error: expected initializer before '_wtmpnam'
  432.  _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wtmpnam (wchar_t*);
  433.                                           ^
  434. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:587:42: error: expected initializer before '_wtempnam'
  435.  _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wtempnam (const wchar_t*, const wchar_t*);
  436.                                           ^
  437. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:588:37: error: expected initializer before '_wrename'
  438.  _CRTIMP int __cdecl __MINGW_NOTHROW _wrename (const wchar_t*, const wchar_t*);
  439.                                      ^
  440. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:589:37: error: expected initializer before '_wremove'
  441.  _CRTIMP int __cdecl __MINGW_NOTHROW _wremove (const wchar_t*);
  442.                                      ^
  443. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:590:38: error: expected initializer before '_wperror'
  444.  _CRTIMP void __cdecl __MINGW_NOTHROW _wperror (const wchar_t*);
  445.                                       ^
  446. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:591:39: error: expected initializer before '_wpopen'
  447.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wpopen (const wchar_t*, const wchar_t*);
  448.                                        ^
  449. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:595:29: error: expected initializer before 'snwprintf'
  450.  int __cdecl __MINGW_NOTHROW snwprintf (wchar_t* s, size_t n, const wchar_t*  format, ...);
  451.                              ^
  452. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:596:29: error: expected initializer before 'vsnwprintf'
  453.  int __cdecl __MINGW_NOTHROW vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg);
  454.                              ^
  455. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:599:1: error: expected initializer before 'vsnwprintf'
  456.  vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg)
  457.  ^
  458. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:602:29: error: expected initializer before 'vwscanf'
  459.  int __cdecl __MINGW_NOTHROW vwscanf (const wchar_t * __restrict__, __VALIST);
  460.                              ^
  461. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:603:29: error: expected initializer before 'vfwscanf'
  462.  int __cdecl __MINGW_NOTHROW vfwscanf (FILE * __restrict__,
  463.                              ^
  464. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:605:29: error: expected initializer before 'vswscanf'
  465.  int __cdecl __MINGW_NOTHROW vswscanf (const wchar_t * __restrict__,
  466.                              ^
  467. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:614:39: error: expected initializer before 'wpopen'
  468.  _CRTIMP FILE* __cdecl __MINGW_NOTHROW wpopen (const wchar_t*, const wchar_t*);
  469.                                        ^
  470. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:620:40: error: expected initializer before '_fgetwchar'
  471.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW _fgetwchar (void);
  472.                                         ^
  473. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:621:40: error: expected initializer before '_fputwchar'
  474.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW _fputwchar (wint_t);
  475.                                         ^
  476. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:622:37: error: expected initializer before '_getw'
  477.  _CRTIMP int __cdecl __MINGW_NOTHROW _getw (FILE*);
  478.                                      ^
  479. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:623:37: error: expected initializer before '_putw'
  480.  _CRTIMP int __cdecl __MINGW_NOTHROW _putw (int, FILE*);
  481.                                      ^
  482. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:626:40: error: expected initializer before 'fgetwchar'
  483.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW fgetwchar (void);
  484.                                         ^
  485. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:627:40: error: expected initializer before 'fputwchar'
  486.  _CRTIMP wint_t __cdecl __MINGW_NOTHROW fputwchar (wint_t);
  487.                                         ^
  488. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:628:37: error: expected initializer before 'getw'
  489.  _CRTIMP int __cdecl __MINGW_NOTHROW getw (FILE*);
  490.                                      ^
  491. /Users/affinity/Documents/Arduino/libraries/Stdio/stdio.h:629:37: error: expected initializer before 'putw'
  492.  _CRTIMP int __cdecl __MINGW_NOTHROW putw (int, FILE*);
  493.                                      ^
  494. Menu_2.ino: In function 'char GetChoice()':
  495. Menu_2.ino:25:24: error: 'scanf' was not declared in this scope
  496. Error compiling.
  497.  
haha I thought a started to understand this coding thing more a week ago, but now I am so so lost. :)
Apr 10 '15 #15

P: 13
Do you know of a good tutorial that goes through all the functions and definitions and explains them clearly. I probably need to get a better understanding of what things are and how they work
Apr 10 '15 #16

weaknessforcats
Expert Mod 5K+
P: 9,197

P: 13
Thank-you!!!! :) I will get reading and looking over both of the codes making sure everything is within a function.
Apr 10 '15 #18

Post your reply

Sign in to post your reply or Sign up for a free account.