-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Area: LibrariesIssue is related to Library support.Issue is related to Library support.Status: SolvedThe issue has been resolved and requires no further action.The issue has been resolved and requires no further action.
Milestone
Description
Board
Any
Device Description
The issue is with all boards: I tried with the ESP32 and a C6
Hardware Configuration
n/a
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino IDE
Operating System
Linux Mint
Flash frequency
n/a
PSRAM enabled
no
Upload speed
n/a
Description
The new version (4.0.0) contains espressif__esp-tflite-micro which has a complex.h in the src directory:
~/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-3662303f312/esp32/include/espressif__esp-tflite-micro/signal/src/complex.h
This is preventing that the regular complex.h from the c and c++ library can be used!
So all libraries containing complex.h are broken and will produce compile errors.
Sketch
#include <complex.h>
std::complex<double> mycomplex(10.0, 2.0);
void setup() {}
void loop() {}
Debug Message
Compile error:
/tmp/.arduinoIDE-unsaved2024315-466177-1nzbc94.mycl/sketch_apr15c/sketch_apr15c.ino:3:6: error: 'complex' in namespace 'std' does not name a template type
3 | std::complex<double> mycomplex(10.0, 2.0);
| ^~~~~~~
/tmp/.arduinoIDE-unsaved2024315-466177-1nzbc94.mycl/sketch_apr15c/sketch_apr15c.ino:2:1: note: 'std::complex' is defined in header '<complex>'; did you forget to '#include <complex>'?
1 | #include <complex.h>
+++ |+#include <complex>
2 |
exit status 1
Compilation error: 'complex' in namespace 'std' does not name a template type
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Area: LibrariesIssue is related to Library support.Issue is related to Library support.Status: SolvedThe issue has been resolved and requires no further action.The issue has been resolved and requires no further action.