Skip to content

error: conversion from 'int' to 'String' is ambiguous #4

Open
@picarica

Description

Arduino: 1.8.19 (Linux), Board: "Watchy, Watchy v2.0, Huge APP (3MB No OTA/1MB SPIFFS), 921600, None, Disabled"

WARNING: library Rtc_Pcf8563 claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s).
In file included from /home/bucek/git/watchy_captnwednesday/watchy_captnwednesday.ino:2:
settings.h:27:1: error: conversion from 'int' to 'String' is ambiguous
};
^
In file included from /root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/Arduino.h:188,
from sketch/watchy_captnwednesday.ino.cpp:1:
/root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/WString.h:65:9: note: candidate: 'String::String(const __FlashStringHelper*)'
String(const __FlashStringHelper str) : String(reinterpret_cast<const char>(str)) {}
^~~~~~
/root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/WString.h:65:9: note: conversion of argument 1 would be ill-formed:
In file included from /home/bucek/git/watchy_captnwednesday/watchy_captnwednesday.ino:2:
settings.h:27:1: error: invalid conversion from 'int' to 'const __FlashStringHelper*' [-fpermissive]
};
^
In file included from /root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/Arduino.h:188,
from sketch/watchy_captnwednesday.ino.cpp:1:
/root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/WString.h:59:9: note: candidate: 'String::String(const char*)'
String(const char cstr = "");
^~~~~~
/root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/WString.h:59:9: note: conversion of argument 1 would be ill-formed:
In file included from /home/bucek/git/watchy_captnwednesday/watchy_captnwednesday.ino:2:
settings.h:27:1: error: invalid conversion from 'int' to 'const char
' [-fpermissive]
};
^
settings.h:27:1: error: conversion from 'int' to 'String' is ambiguous
In file included from /root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/Arduino.h:188,
from sketch/watchy_captnwednesday.ino.cpp:1:
/root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/WString.h:65:9: note: candidate: 'String::String(const __FlashStringHelper*)'
String(const __FlashStringHelper str) : String(reinterpret_cast<const char>(str)) {}
^~~~~~
/root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/WString.h:65:9: note: conversion of argument 1 would be ill-formed:
In file included from /home/bucek/git/watchy_captnwednesday/watchy_captnwednesday.ino:2:
settings.h:27:1: error: invalid conversion from 'int' to 'const __FlashStringHelper*' [-fpermissive]
};
^
In file included from /root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/Arduino.h:188,
from sketch/watchy_captnwednesday.ino.cpp:1:
/root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/WString.h:59:9: note: candidate: 'String::String(const char*)'
String(const char cstr = "");
^~~~~~
/root/.arduino15/packages/esp32/hardware/esp32/2.0.17/cores/esp32/WString.h:59:9: note: conversion of argument 1 would be ill-formed:
In file included from /home/bucek/git/watchy_captnwednesday/watchy_captnwednesday.ino:2:
settings.h:27:1: error: invalid conversion from 'int' to 'const char
' [-fpermissive]
};
^
exit status 1
conversion from 'int' to 'String' is ambiguous

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions