0

error compiling remote_monitoring program for iot starter ki
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

error compiling remote_monitoring program for iot starter ki

by jnunes on Tue May 03, 2016 1:18 pm

Arduino: 1.6.8 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, QIO, 115200, 4M (3M SPIFFS), nodemcu, Disabled, None"

Code: Select all | TOGGLE FULL SIZE
WARNING: library AzureIoT claims to run on [samd] architecture(s) and may be incompatible with your current board which runs on [esp8266] architecture(s).
In file included from C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/common/include/nm_common.h:45:0,

                 from C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/driver/include/m2m_wifi.h:49,

                 from C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:28,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/bsp/include/nm_bsp.h:110:23: error: conflicting declaration 'typedef long unsigned int uint32'

 typedef unsigned long uint32;

                       ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/esp8266_peri.h:24:0,

                 from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/Arduino.h:38,

                 from sketch\remote_monitoring.ino.cpp:1:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0/tools/sdk/include/c_types.h:29:29: error: 'uint32' has a previous declaration as 'typedef unsigned int uint32'

 typedef unsigned int        uint32;

                             ^

In file included from C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/common/include/nm_common.h:45:0,

                 from C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/driver/include/m2m_wifi.h:49,

                 from C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:28,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/bsp/include/nm_bsp.h:133:22: error: conflicting declaration 'typedef long int sint32'

 typedef signed long  sint32;

                      ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/esp8266_peri.h:24:0,

                 from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/Arduino.h:38,

                 from sketch\remote_monitoring.ino.cpp:1:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0/tools/sdk/include/c_types.h:32:29: error: 'sint32' has a previous declaration as 'typedef int sint32'

 typedef signed int          sint32;

                             ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:51:27: error: redeclaration of 'WL_NO_SHIELD'

     WL_NO_SHIELD        = 255,   // for compatibility with WiFi Shield library

                           ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:37:2: note: previous declaration 'wl_status_t WL_NO_SHIELD'

  WL_NO_SHIELD = 255,

  ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:52:27: error: redeclaration of 'WL_IDLE_STATUS'

     WL_IDLE_STATUS      = 0,

                           ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:38:2: note: previous declaration 'wl_status_t WL_IDLE_STATUS'

  WL_IDLE_STATUS = 0,

  ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:53:27: error: redeclaration of 'WL_NO_SSID_AVAIL'

     WL_NO_SSID_AVAIL    = 1,

                           ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:39:2: note: previous declaration 'wl_status_t WL_NO_SSID_AVAIL'

  WL_NO_SSID_AVAIL,

  ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:54:27: error: redeclaration of 'WL_SCAN_COMPLETED'

     WL_SCAN_COMPLETED   = 2,

                           ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:40:2: note: previous declaration 'wl_status_t WL_SCAN_COMPLETED'

  WL_SCAN_COMPLETED,

  ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:55:27: error: redeclaration of 'WL_CONNECTED'

     WL_CONNECTED        = 3,

                           ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:41:2: note: previous declaration 'wl_status_t WL_CONNECTED'

  WL_CONNECTED,

  ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:56:27: error: redeclaration of 'WL_CONNECT_FAILED'

     WL_CONNECT_FAILED   = 4,

                           ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:42:2: note: previous declaration 'wl_status_t WL_CONNECT_FAILED'

  WL_CONNECT_FAILED,

  ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:57:27: error: redeclaration of 'WL_CONNECTION_LOST'

     WL_CONNECTION_LOST  = 5,

                           ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:43:2: note: previous declaration 'wl_status_t WL_CONNECTION_LOST'

  WL_CONNECTION_LOST,

  ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:58:27: error: redeclaration of 'WL_DISCONNECTED'

     WL_DISCONNECTED     = 6

                           ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:44:2: note: previous declaration 'wl_status_t WL_DISCONNECTED'

  WL_DISCONNECTED

  ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:59:3: error: conflicting declaration 'typedef enum wl_status_t wl_status_t'

 } wl_status_t;

   ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:45:3: error: 'wl_status_t' has a previous declaration as 'typedef enum wl_status_t wl_status_t'

 } wl_status_t;

   ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:28:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/include/wl_definitions.h:62:6: error: multiple definition of 'enum wl_enc_type'

 enum wl_enc_type {  /* Values map to 802.11 encryption suites... */

      ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:48:6: error: previous definition here

 enum wl_enc_type {  /* Values map to 802.11 encryption suites... */

      ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/WiFiClient.h:36:7: error: redefinition of 'class WiFiClient'

 class WiFiClient : public Client, public SList<WiFiClient> {

       ^

In file included from C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:32:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFiClient.h:28:7: error: previous definition of 'class WiFiClient'

 class WiFiClient : public Client {

       ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/WiFiClient.h:119:15: error: prototype for 'size_t WiFiClient::write(T&, size_t)' does not match any in class 'WiFiClient'

 inline size_t WiFiClient::write(T& source, size_t unitSize) {

               ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/Stream.h:26:0,

                 from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/HardwareSerial.h:31,

                 from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/Arduino.h:246,

                 from sketch\remote_monitoring.ino.cpp:1:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/Print.h:56:16: error: candidates are: size_t Print::write(const char*)

         size_t write(const char *str) {

                ^

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/Print.h:62:16: error:                 size_t Print::write(const char*, size_t)

         size_t write(const char *buffer, size_t size) {

                ^

In file included from C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:32:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFiClient.h:42:17: error:                 virtual size_t WiFiClient::write(const uint8_t*, size_t)

  virtual size_t write(const uint8_t *buf, size_t size);

                 ^

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFiClient.h:41:17: error:                 virtual size_t WiFiClient::write(uint8_t)

  virtual size_t write(uint8_t);

                 ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:40:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/WiFiServer.h:37:7: error: redefinition of 'class WiFiServer'

 class WiFiServer : public Server {

       ^

In file included from C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:34:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFiServer.h:28:7: error: previous definition of 'class WiFiServer'

 class WiFiServer : public Server {

       ^

In file included from C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41:0,

                 from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/WiFiClientSecure.h:34:3: error: 'WiFiClientSecure::~WiFiClientSecure()' marked override, but does not override

   ~WiFiClientSecure() override;

   ^

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/WiFiClientSecure.h:49:10: error: 'size_t WiFiClientSecure::peekBytes(uint8_t*, size_t)' marked override, but does not override

   size_t peekBytes(uint8_t *buffer, size_t length) override;

          ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:13:0:

C:\Users\Student\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:86:25: error: conflicting declaration 'ESP8266WiFiClass WiFi'

 extern ESP8266WiFiClass WiFi;

                         ^

In file included from C:\Users\Student\Documents\AzureIoT-master\examples\esp8266\remote_monitoring\remote_monitoring.ino:1:0:

C:\Users\Student\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:150:18: error: 'WiFi' has a previous declaration as 'WiFiClass WiFi'

 extern WiFiClass WiFi;

                  ^

exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

jnunes
 
Posts: 4
Joined: Tue May 03, 2016 1:03 pm

Re: error compiling remote_monitoring program for iot starte

by adafruit_support_rick on Thu May 05, 2016 10:20 am

Please don't double post. You other thread is here
viewtopic.php?f=53&t=95753&p=480521#p480521

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.