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

OSCData.h wired issues with adding int32_t data #154

Open
sstaub opened this issue Oct 16, 2024 · 0 comments
Open

OSCData.h wired issues with adding int32_t data #154

sstaub opened this issue Oct 16, 2024 · 0 comments

Comments

@sstaub
Copy link
Contributor

sstaub commented Oct 16, 2024

Adding int32_t data doesn't work on some microcontrollers.
It works on an Arduino UNO but when trying to compile Raspberry Pi Pico I get some error message.
int or int64_t works as expected.
The problem comes up with last update of OSCData.h
Maybe an OSCData (int32_t) method is missing.

/Users/sstaub/Documents/Arduino/libraries/OSC/OSCMessage.h: In instantiation of 'OSCMessage& OSCMessage::add(T) [with T = long int]':
/Users/sstaub/Documents/Arduino/ETC_EOS_TCP/ETC_EOS_TCP.ino:50:11:   required from here
   50 |                 ping.add(pingNum++);
      |                 ~~~~~~~~^~~~~~~~~~~
/Users/sstaub/Documents/Arduino/libraries/OSC/OSCMessage.h:136:31: error: call of overloaded 'OSCData(long int&)' is ambiguous
  136 |                 OSCData * d = new OSCData(datum);
      |                               ^~~~~~~~~~~~~~~~~~
In file included from /Users/sstaub/Documents/Arduino/libraries/OSC/OSCMessage.h:29:
/Users/sstaub/Documents/Arduino/libraries/OSC/OSCData.h:132:5: note: candidate: 'OSCData::OSCData(boolean)'
  132 |     OSCData  (boolean);
      |     ^~~~~~~
/Users/sstaub/Documents/Arduino/libraries/OSC/OSCData.h:128:9: note: candidate: 'OSCData::OSCData(double)'
  128 |         OSCData (double);
      |         ^~~~~~~
/Users/sstaub/Documents/Arduino/libraries/OSC/OSCData.h:127:9: note: candidate: 'OSCData::OSCData(float)'
  127 |         OSCData (float);
      |         ^~~~~~~
/Users/sstaub/Documents/Arduino/libraries/OSC/OSCData.h:126:5: note: candidate: 'OSCData::OSCData(unsigned int)'
  126 |     OSCData (unsigned int);
      |     ^~~~~~~
/Users/sstaub/Documents/Arduino/libraries/OSC/OSCData.h:122:10: note: candidate: 'OSCData::OSCData(int64_t)'
  122 |          OSCData (int64_t);
      |          ^~~~~~~
/Users/sstaub/Documents/Arduino/libraries/OSC/OSCData.h:121:10: note: candidate: 'OSCData::OSCData(intOSC_t)'
  121 |          OSCData (intOSC_t);
      |          ^~~~~~~
/Users/sstaub/Documents/Arduino/libraries/OSC/OSCData.h:87:5: note: candidate: 'OSCData::OSCData(char)'
   87 |     OSCData(char t);
      |     ^~~~~~~
/Users/sstaub/Documents/Arduino/libraries/OSC/OSCData.h:77:7: note: candidate: 'constexpr OSCData::OSCData(const OSCData&)'
   77 | class OSCData
      |       ^~~~~~~

Using library Ethernet at version 2.0.2 in folder: /Users/sstaub/Documents/Arduino/libraries/Ethernet 
Using library OSC at version 3.5.8 in folder: /Users/sstaub/Documents/Arduino/libraries/OSC 
Using library SPI at version 1.0 in folder: /Users/sstaub/Library/Arduino15/packages/rp2040/hardware/rp2040/4.1.1/libraries/SPI 
exit status 1

Compilation error: exit status 1
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