I added the ArduinoMenu library https://github.com/neu-rah/ArduinoMenu and when I try to compile one of the examples, I get following error.

Using library LiquidCrystal at version 1.0.5 in folder: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560.

How can I fix this?

  • 2
    We need the full error output, not just the last couple lines that happened to be visible. If you were observant you would have seen that there is a scroll bar on the right side of the black console window at the bottom of the Arduino IDE window that indicates you can scroll up to see more text. Spend some time reading those errors and doing research to see if you can figure out what's wrong on your own. After that if you still can't solve the problem click the button on the right side of the orange bar after an error "Copy error messages" then edit your question to include the full error.
    – per1234
    Apr 1, 2017 at 8:32

2 Answers 2


I think you have to add your library in the library folder. Below is the path of that folder. It will help you.

C:\Program Files (x86)\Arduino\libraries

  • 2
    You should never install a library to the Arduino IDE installation folder because it will be lost if you update to a new version of the IDE. If you're doing a manual library installation you should always install them to the libraries subfolder of the sketchbook folder. The location of the sketchbook folder can be found at File > Preferences > Sketchbook location.
    – per1234
    Apr 1, 2017 at 8:35
  • @per1234 Yes, you're right. But everyone uses this method and it's working fine.
    – Hasan
    Apr 1, 2017 at 8:58
  • @per1234... This is the simplest way to add library by just copy and paste.
    – karanrp
    Apr 1, 2017 at 9:23
  • 1
    there are better places for libraries. the install folder is for core, and customizing it is asking for trouble
    – dandavis
    Apr 1, 2017 at 13:54
  • 2
    @karanrp it's no more simple than installing to the sketchbook folder and much less so when you update and find all your 3rd party and custom libraries have disappeared.
    – per1234
    Apr 1, 2017 at 16:17

Can you compile the LCD example for that board? just to make sure you have LiquidCrystal library ok.

Then tell us what was the example? There are hardware specific examples.

Also try to compile the serial menu example, just to make sure that ArduinoMenu library is ok for your board.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.