-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'to_string' is not a member of 'std' in ZgatewayRF.ino #1946
Comments
if I change in environments.ini
the toolchain updates
the code seems to compile, but I got tons on linker errors. |
I checked out a fresh copy, and also development behaves the way. I replaced the rawdump block in |
If you don't need raw dump, I will comment it. |
Before submitting a problem please check the troubleshooting section
https://docs.openmqttgateway.com/upload/troubleshoot.html
Describe the bug
Compile Error:
/workspaces/pio-workspace/main/ZgatewayRF.ino: In function 'void RFtoMQTT()':
/workspaces/pio-workspace/main/ZgatewayRF.ino:134:18: error: 'to_string' is not a member of 'std'
rawDump += std::to_string(raw[i]);
To Reproduce
git checkout v1.7.0
enable + '-DZgatewayRF="RF"' in environments.ini
pio run -e rfbridge-direct
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
n/a
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
Processing rfbridge-direct (platform: espressif8266@^2; board: esp8285; framework: arduino)
PlatformIO Core, version 6.1.14
xtensa-lx106-elf-g++ (GCC) 4.8.2
If I remove
-DZgatewayRF="RF"'
project compiles.I tried to reproduce the error in a very small project, this compiles in esp32 bur not in esp8266
-std is set to gnu++11 in both calls
pio run -e esp01 fails: 'to_string' is not a member of 'std'
pio run -e esp32 works
The text was updated successfully, but these errors were encountered: