exit status 1 no matching function for call to 'LiquidCrystal::LiquidCrystal(int, int, int, int, int)'
It seems as if you are missing a parameter in the lcd() call. It seem to take six arguments, not five.

From the Blink example in the LiquidCrystal library:

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);


Also, looking at the library definition, from LiquidCrystal.cpp:

class LiquidCrystal : public Print {
public:
  LiquidCrystal(uint8_t rs, uint8_t enable,
        uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3,
        uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7);
  LiquidCrystal(uint8_t rs, uint8_t rw, uint8_t enable,
        uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3,
        uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7);
  LiquidCrystal(uint8_t rs, uint8_t rw, uint8_t enable,
        uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3);
  LiquidCrystal(uint8_t rs, uint8_t enable,
        uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3);
...
}


The number of arguments accepted by the various overloaded constructors are (respectively):


10
11
7
6


So, your statement:

LiquidCrystal lcd(2,4,5,6,7);


is missing a parameter (or more) as it only has five.

This explains why the error that you are seeing has five ints listed in the parameter list:

'LiquidCrystal::LiquidCrystal(int, int, int, int, int)'