Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic compile error (Read 4928 times)
sima
Newbies
*
Offline


Posts: 7
Joined: Jan 22nd, 2019
compile error
Jan 22nd, 2019 at 7:06pm
Print Post  
Dear All

I have a project using the below libraries

Code
Select All
#if defined(ESP8266)
  #include <SerialESP8266wifi.h>
  #include <WiFiUdp.h>
  #include <WiFiServer.h>
  #include <WiFiClient.h>
  #include <WiFiClientSecure.h>
  #include <ssl_client.h>
  #include <ESP8266WiFi.h>  //ESP8266 Core WiFi Library
  #include <ESP8266WebServer.h> //Local WebServer used to serve the configuration portal
#else
  #include <TimeLib.h>
  #include <NtpClientLib.h>
  #include <WiFi.h>      //ESP32 Core WiFi Library
  #include <WebServer.h> //Local WebServer used for configuration portal ( https://github.com/zhouhan0126/WebServer-esp32 )
#endif

#include <DNSServer.h> //Local DNS Server used for redirecting all requests to the configuration portal ( https://github.com/zhouhan0126/DNSServer---esp32 )
#include <WiFiManager.h>   // WiFi Configuration Magic ( https://github.com/zhouhan0126/WIFIMANAGER-ESP32 ) >> https://github.com/tzapu/WiFiManager (ORIGINAL)
#include <TaskSchedulerDeclarations.h>
#include <TaskScheduler.h>
#include <HardwareSerial.h>
#include <Wire.h>
//#include <Free_Fonts.h>
#include <SPI.h>
#include <TFT_eSPI.h>
//#include <SparkFunBME280.h>
//#include <SparkFunCCS811.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#include <Adafruit_CCS811.h>
#include <Ticker.h>
 



If I compile the code in normal Arduino IDE everything is fine, compiling the same project in VMicro I get this errors.

Code
Select All

WiFiManager.cpp: 276:18: error: no matching function for call to 'WiFiClass::begin()
   WiFi.begin()

WiFiManager.h:20: In file included from
WiFiManager.cpp:13: from
WiFi.h:60: note  candidate  int WiFiClass  begin(char*)
   int begin(char* ssid)
WiFi.h:60: note    candidate expects 1 argument, 0 provided
WiFi.h:70: note  candidate  int WiFiClass  begin(char*, uint8_t, const char*)
   int begin(char* ssid, uint8_t key_idx, const char* key)
WiFi.h:70: note    candidate expects 3 arguments, 0 provided
WiFi.h:79: note  candidate  int WiFiClass  begin(char*, const char*)
   int begin(char* ssid, const char *passphrase)
WiFi.h:79: note    candidate expects 2 arguments, 0 provided
WiFiManager.cpp: In member function uint8_t WiFiManager::waitForConnectResult()

WiFiManager.cpp: 296:17: error: 'class WiFiClass' has no member named 'waitForConnectResult
   return WiFi.waitForConnectResult()
WiFiManager.cpp: In member function String WiFiManager::getPassword()

WiFiManager.cpp: 341:18: error: 'class WiFiClass' has no member named 'psk
   _pass = WiFi.psk()
WiFiManager.cpp: In member function void WiFiManager::resetSettings()

WiFiManager.cpp: 358:23: error: no matching function for call to 'WiFiClass::disconnect(bool)
   WiFi.disconnect(true)

WiFiManager.h:20: In file included from
WiFiManager.cpp:13: from
WiFi.h:130: note  candidate  int WiFiClass  disconnect()
   int disconnect(void)
WiFi.h:130: note    candidate expects 0 arguments, 1 provided
WiFiManager.cpp: In member function void WiFiManager::handleWifi(boolean)

WiFiManager.cpp: 470:57: error: invalid operands of types 'const char [9]' and 'char*' to binary 'operator+
   " + WiFi.SSID(indices[j]))
WiFiManager.cpp: In member function void WiFiManager::handleInfo()

WiFiManager.cpp: 675:16: error: 'class WiFiClass' has no member named 'softAPIP
   page += WiFi.softAPIP().toString()

WiFiManager.cpp: 678:16: error: 'class WiFiClass' has no member named 'softAPmacAddress
   page += WiFi.softAPmacAddress()

WiFiManager.cpp: 681:27: error: no matching function for call to 'WiFiClass::macAddress()
   page += WiFi.macAddress()

WiFiManager.h:20: In file included from
WiFiManager.cpp:13: from
WiFi.h:137: note  candidate  uint8_t* WiFiClass  macAddress(uint8_t*)
   uint8_t* macAddress(uint8_t* mac)
WiFi.h:137: note    candidate expects 1 argument, 0 provided
WiFiManager.cpp: In member function boolean WiFiManager::captivePortal()

WiFiManager.cpp: 746:84: error: 'class WiFiClient' has no member named 'localIP
   ") + toStringIp(server->client().localIP()), true)
Error compiling libraries
Debug build failed for project 'ESP32WetterStationTFT'

 



Whats wrong?

I am using the same pathes for sketches, libraries in Arduino IDE and VMicro

Thanks for helping
Martin
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compile error
Reply #1 - Jan 24th, 2019 at 12:01am
Print Post  
Please switch on vmicro>compiler>verbose and vmicro>compiler>show build properties. Then build and post the output as a .txt file

Thanks
  
Back to top
WWW  
IP Logged
 
sima
Newbies
*
Offline


Posts: 7
Joined: Jan 22nd, 2019
Re: compile error
Reply #2 - Jan 24th, 2019 at 5:10pm
Print Post  
Tim@Visual Micro wrote on Jan 24th, 2019 at 12:01am:
Please switch on vmicro>compiler>verbose and vmicro>compiler>show build properties. Then build and post the output as a .txt file

Thanks


Attached

Thank you
« Last Edit: Jan 24th, 2019 at 5:10pm by sima »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compile error
Reply #3 - Jan 24th, 2019 at 5:16pm
Print Post  
Thanks

1)
Please switch the combobox on the toolbar from Debug to Release then try the build

2)
Confirm that you expect the following library that you have installed to be used.


If you do not want to use this specific lib then delete the folder and click Rescan or restart the IDE
« Last Edit: Jan 24th, 2019 at 5:18pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
sima
Newbies
*
Offline


Posts: 7
Joined: Jan 22nd, 2019
Re: compile error
Reply #4 - Jan 24th, 2019 at 6:35pm
Print Post  
Changed to build, still compile error

I confirm that I am using  library

Thanks Martin
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compile error
Reply #5 - Jan 25th, 2019 at 1:54pm
Print Post  
In the arduino ide please switch on File>Preferences>Compile Verbose then build and post the output as a .txt file

Thanks
  
Back to top
WWW  
IP Logged
 
sima
Newbies
*
Offline


Posts: 7
Joined: Jan 22nd, 2019
Re: compile error
Reply #6 - Jan 25th, 2019 at 1:59pm
Print Post  
Tim@Visual Micro wrote on Jan 25th, 2019 at 1:54pm:
In the arduino ide please switch on File>Preferences>Compile Verbose then build and post the output as a .txt file

Thanks


Hi 
Thanks for reply

After some hours of investigation I was able to break it down to an installed WiFi library for Arduino.
After removing it sketch is compiling like a charm.

Thanks for your help

Martin
 
« Last Edit: Jan 25th, 2019 at 2:00pm by sima »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compile error
Reply #7 - Jan 25th, 2019 at 2:01pm
Print Post  
Great thanks for the update.

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint