WiFiManager by tzapu having error

I installed and linked tzapu wifimanger to write code for esp8266. when I declare
WiFiManager wifiManager; wifiManager.autoConnect();

I am getting error wifiManager does not name a type please help
TIA