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 ESP32 Compiler Error for IPv6Address (Read 1563 times)
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
ESP32 Compiler Error for IPv6Address
Oct 20th, 2022 at 5:49pm
Print Post  
Also get an error on this when compiling

WiFiSTA.h: 87:5: error: 'IPv6Address' does not name a type; did you mean 'IPAddress'?
« Last Edit: Oct 20th, 2022 at 5:56pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: ESP32 Compiler Error for IPv6Address
Reply #1 - Oct 20th, 2022 at 5:57pm
Print Post  
Thanks for the report.

Can you enable the options shown at the top of the page and attach the build output.

Can you also confirm an example line of code from your sketch giving this error?
  
Back to top
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: ESP32 Compiler Error for IPv6Address
Reply #2 - Oct 24th, 2022 at 11:11am
Print Post  
Code (C++)
Select All
#include <WiFiUdp.h>
#include <WiFiType.h>
#include <WiFiSTA.h>
#include <WiFiServer.h>
#include <WiFiScan.h>
#include <WiFiMulti.h>
#include <WiFiGeneric.h>
#include <WiFiClient.h>
#include <WiFiAP.h>
#include <WiFi.h>
void setup() {

}

// the loop function runs over and over again until power down or reset
void loop() {
    const char* user = "me";
    const char* pwd = "me";
    uint8_t auth = strlen(user) + strlen(pwd);
    char toEncode[auth + 4];
} 


  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: ESP32 Compiler Error for IPv6Address
Reply #3 - Oct 24th, 2022 at 11:42am
Print Post  
Thanks for the report.

The IPV6Address.h is brought in by the Wifi.h file, if you move the #include <Wifi.h> to the top of the #includes list this should compile as expected.

Reviewing all #includes the only ones that are needed are for Wifi.h, and WifiMulti.h, as the WiFi.h brings in all of the others listed (assuming you will be using the WiFiMulti functionality later in your sketch development).

We will look at how the headers are added when using the Add Library functionality to see if this can be avoided in the future with the automatically included headers list.

  
Back to top
IP Logged
 
The_Specialist
Full Member
***
Offline


Posts: 228
Joined: Jul 1st, 2020
Re: ESP32 Compiler Error for IPv6Address
Reply #4 - Oct 24th, 2022 at 11:49am
Print Post  
I was thinking something like this, it is almost with evry lib that the are reversed imported.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: ESP32 Compiler Error for IPv6Address
Reply #5 - Nov 3rd, 2022 at 3:36pm
Print Post  
Thanks for the detail around this, we have included a fix in the latest release (22.09.05.13) which should resolve this issue, and is available at the top of the board below:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 Compiler Error for IPv6Address
Reply #6 - Dec 22nd, 2022 at 11:03pm
Print Post  
This Topic was moved here from Visual Studio 2017, 2019, 2022 [move by] Tim@Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint