Skip to content
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

UDP enum conflicts with arduino samd core libraries #6

Open
xadhoom opened this issue Oct 2, 2022 · 0 comments
Open

UDP enum conflicts with arduino samd core libraries #6

xadhoom opened this issue Oct 2, 2022 · 0 comments

Comments

@xadhoom
Copy link

xadhoom commented Oct 2, 2022

Hello, seems that there's a naming clash between an internal UDP constant and arduino core libraries:

here's the errror:

In file included from /home/matteo/Arduino/libraries/Sodaq_R4X/src/Sodaq_R4X.h:37:0,
                 from /tmp/.arduinoIDE-unsaved202292-14823-2aujqs.wgv0k/sketch_oct2a/sketch_oct2a.ino:11:
/home/matteo/Arduino/libraries/Sodaq_R4X/src/Sodaq_Ublox.h:114:75: error: reference to 'UDP' is ambiguous
     virtual int socketCreate(uint16_t localPort = 0, Protocols protocol = UDP) = 0;
                                                                           ^~~
/home/matteo/Arduino/libraries/Sodaq_R4X/src/Sodaq_Ublox.h:56:5: note: candidates are: Protocols UDP
     UDP
     ^~~
In file included from /home/matteo/.arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/api/ArduinoAPI.h:37:0,
                 from /home/matteo/.arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/Arduino.h:23,
                 from /tmp/arduino-sketch-A7215B08F254AC88B1DCAEE3F4F1EB6D/sketch/sketch_oct2a.ino.cpp:1:
/home/matteo/.arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/api/Udp.h:42:7: note:                 class arduino::UDP
 class UDP : public Stream {
       ^~~
In file included from /tmp/.arduinoIDE-unsaved202292-14823-2aujqs.wgv0k/sketch_oct2a/sketch_oct2a.ino:11:0:
/home/matteo/Arduino/libraries/Sodaq_R4X/src/Sodaq_R4X.h:215:70: error: reference to 'UDP' is ambiguous
     int    socketCreate(uint16_t localPort = 0, Protocols protocol = UDP);
                                                                      ^~~
In file included from /home/matteo/Arduino/libraries/Sodaq_R4X/src/Sodaq_R4X.h:37:0,
                 from /tmp/.arduinoIDE-unsaved202292-14823-2aujqs.wgv0k/sketch_oct2a/sketch_oct2a.ino:11:
/home/matteo/Arduino/libraries/Sodaq_R4X/src/Sodaq_Ublox.h:56:5: note: candidates are: Protocols UDP
     UDP
     ^~~
In file included from /home/matteo/.arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/api/ArduinoAPI.h:37:0,
                 from /home/matteo/.arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/Arduino.h:23,
                 from /tmp/arduino-sketch-A7215B08F254AC88B1DCAEE3F4F1EB6D/sketch/sketch_oct2a.ino.cpp:1:
/home/matteo/.arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/api/Udp.h:42:7: note:                 class arduino::UDP
 class UDP : public Stream {
       ^~~

exit status 1

Compilation error: exit status 1

the sketch is very basic, just

#include <Sodaq_R4X.h>
#include <Sodaq_Ublox.h>

in a empty sketch

Any hint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant