GiorgosXou / NeuralNetworks

A resource-conscious neural network implementation for MCUs
MIT License
70 stars 21 forks source link

ESP32 Error "invalid conversion from 'const float*' to 'float*' [-fpermissive]" #14

Closed kamon2022 closed 7 months ago

kamon2022 commented 1 year ago

Hi, I have some problem if I use ESP32 I found this error. "invalid conversion from 'const float' to 'float' [-fpermissive]" in file "FeedForward_double_Xor"

Could you help me ? I can compile if i use arduino mega. I can not compile if I use esp32

GiorgosXou commented 1 year ago

Just remove the const from those 2 lines:

https://github.com/GiorgosXou/NeuralNetworks/blob/31bb95e4cefcaefb28f6b031a634ded6c7274a7d/examples/FeedForward_double_Xor/FeedForward_double_Xor.ino#L22

https://github.com/GiorgosXou/NeuralNetworks/blob/31bb95e4cefcaefb28f6b031a634ded6c7274a7d/examples/FeedForward_double_Xor/FeedForward_double_Xor.ino#L25

Reference

kamon2022 commented 1 year ago

Thank you very much for helping.