[SOLVED] ESP8266 MQTT API compile errors

you are using wrong library. Have a look at this tutorial Adding a New Device using MQTT