Multiple definition of `time' error

I am having an error compiling for the SparkFun ESP8266 Thing, which I am attempting to use in conjunction with a Pro Mini and some led light strips. I have based my setup off of this project:LED Cloud Connected Cloud

I have the Blynk Library and added the ESP8266 boards needed in IDE.

The code I am using can be found here: IoT CloudCloud. The specific file is also attached.

Here is the error message:

arduino.ar(time.c.o): In function `time':
/Users/colemanstivers/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/time.c:93: multiple definition of `time'
sketch/CloudCloud.ino.cpp.o:/Users/colemanstivers/Documents/Arduino/libraries/Blynk/Adapters/BlynkArduinoClient.h:99: first defined here
/Users/colemanstivers/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: Warning: size of symbol `time' changed from 4 in sketch/CloudCloud.ino.cpp.o to 29 in arduino.ar(time.c.o)
/Users/colemanstivers/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: Warning: type of symbol `time' changed from 1 to 2 in arduino.ar(time.c.o)
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board SparkFun ESP8266 Thing.

CloudCloud.ino (11.6 KB)

States.h (489 Bytes)

I had the same results with both Arduino IDE 1.6.5-r5, 1.6.8, and the hourly build after doing:

It's strange because those are only warnings so they shouldn't cause compiling to fail. Also, BlynkArduinoClient.h line 99 is:

   bool connected() { YIELD_FIX(); return isConn && client.connected(); }

I don't see anything about time there.
So I commented out lines 92-100 of my equivalent of /Users/colemanstivers/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/time.c and voila CloudCloud.ino compiles. I'm not saying that's a very good solution or that it won't cause other problems but just sharing my findings and hopefully it might be of some help.

There is

unsigned long time;

in the sketch (line 93). It conflicts with the time() function defined in the ESP8266 core.
Just rename it.

Good one @oqibidipo! Strange that the compiler message is so misleading. I have submitted a pull request to the IoT_CloudCloud repository to fix the issue: Fix variable names conflict with time function by per1234 · Pull Request #1 · sparkfun/IoT_CloudCloud · GitHub

@oqibidipo Thank you so much, that worked like a charm!

oqibidipo:
There is

unsigned long time;

in the sketch (line 93). It conflicts with the time() function defined in the ESP8266 core.
Just rename it.

Thank you, that worked for me too