<Cfloat> error for image detection project

Question/Issue: I am working on a machine learning project using Arduino. The zip file download for esp32 won’t run because of a cfloat error. I have gone through the entire zip file and found no clfoat file that links to the numpy location. How do I fix this error?

Project ID:

Context/Use case:

Are you using the arduino ide? And downloading the Arduino library?

Or what ide are you using?

Hi @Kimbetty,

Please copy and paste the error messages you see from the Arduino IDE. That will help us troubleshoot your issue.

I have the same issue, this is the error copy pasted:

In file included from C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/edge-impulse-sdk/classifier/ei_model_types.h:24:0,
from C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/edge-impulse-sdk/classifier/ei_run_dsp.h:21,
from C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/edge-impulse-sdk/classifier/ei_run_classifier.h:23,
from C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/stemmervanpulhof-project-1_inferencing.h:49,
from C:\Users\berniabadr\AppData\Local\Temp.arduinoIDE-unsaved2024031-30596-1cofyw8.q9r6\static_buffer\static_buffer.ino:18:
C:\Users\berniabadr\Documents\Arduino\libraries\stemmervanpulhof-project-1_inferencing\src/edge-impulse-sdk/dsp/numpy.hpp:32:10: fatal error: cfloat: No such file or directory
compilation terminated.
exit status 1

Compilation error: exit status 1

Hi @stemmervanpulhof,

Which ESP32 are you using?

I don’t have a lot of experience so if I need to be more specific tell me. But I’m using the ESP-EYE. Does that help?


Apologies for the delay. Were you able to figure this out? If not, could you provide the following:

  • Edge Impulse project ID number (so I can try to replicate the issue)
  • Which version of the Arduino ESP32 board package do you have installed (you can find this in the Arduino IDE)?

Hi @shawn_edgeimpulse,

No worries, thanks for helping me out! I have not yet figured it out.
The project ID number is: 284341. I’ve also got the link in case you’d need it: stemmervanpulhof-project-1 - Dashboard - Edge Impulse.
For the board package, I haven’t downloaded any library since I deleted the Arduino IDE application and reinstalled it to see if it would work. I did have a library installed before but I do not know precisely which one.

Kind regards

Hi @stemmervanpulhof,

I was able to compile your project successfully. Here is what I used:

  • Arduino IDE v2.2.1
  • esp32 board package v2.0.14
  • Board selected: ESP32 Wrover Module

Could you see if those settings/versions work for you?