Reference to 'map' is ambiguous

In the sketche below i get this error
"reference to 'map' is ambiguous"

I found out that I get the same error if i only included "using namespace std; , that is inside <NtpClientLib.h>

I can't figure out why, the only connection with ESP8266mDNS is, they also use std. but none of it relate to MAP

Arduino IDE v.1.8.13
ESP8266 v.2.6.3

This is the code that throws the err

//using namespace std;
#include <NtpClientLib.h>
#include <ESP8266mDNS.h>
void setup() {
// put your setup code here, to run once:
int x = map(55, 1000, 3, 5, 800);
}
void loop() {
}

try

int x = map(55.0, 1000, 3, 5, 800);

By the way, this line is useless because the x is local variable, declared in the setup() only

The ESP8266mDNS.h header file #include(s) header file LEAmDNS.h. That file #include(s) the STL map definition:

#include <map>

The STL implementation of map conflicts with that of the Arduino-specific map() function. This is confusing the compiler.

what is the error?

following compiles for me. made x global to avoid unused variable warning and commented out unavailable libraries

//using namespace std;
// #include <NtpClientLib.h>
// #include <ESP8266mDNS.h>

int x;

void setup() {
    // put your setup code here, to run once:
    x = map(55, 1000, 3, 5, 800);
}

void loop() {
}

Add in ESP8266mDNS.h (included with ESP8266 core) and you'll see the issue per Post #3.

Thank you forthe explanation

If you need map functionality you can copy the function to your sketch and rename it

Thanks, already did :-), it just annoyed me that i couldn't find the other error.