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

'class LinkedList<int>' has no member named 'add' #54

Open
americodias opened this issue Sep 22, 2021 · 1 comment
Open

'class LinkedList<int>' has no member named 'add' #54

americodias opened this issue Sep 22, 2021 · 1 comment

Comments

@americodias
Copy link

americodias commented Sep 22, 2021

When trying to compile your example (SimpleIntegerList.pde) in Arduino IDE 1.8.16 with a Nano RP2040 as target I get the following error:

/Users/(...)/Dev/arduino/sketch_sep22b/sketch_sep22b.ino: In function 'void setup()':
sketch_sep22b:26:10: error: 'class LinkedList' has no member named 'add'
myList.add(n);
^~~
sketch_sep22b:27:10: error: 'class LinkedList' has no member named 'add'
myList.add(0);
^~~
sketch_sep22b:28:10: error: 'class LinkedList' has no member named 'add'
myList.add(l);
^~~
sketch_sep22b:29:10: error: 'class LinkedList' has no member named 'add'
myList.add(17);
^~~
sketch_sep22b:30:10: error: 'class LinkedList' has no member named 'add'
myList.add(k);
^~~
sketch_sep22b:31:10: error: 'class LinkedList' has no member named 'add'
myList.add(m);
^~~
/Users/adias/Dev/arduino/sketch_sep22b/sketch_sep22b.ino: In function 'void loop()':
sketch_sep22b:36:25: error: 'class LinkedList' has no member named 'size'
int listSize = myList.size();
^~~~
sketch_sep22b:46:22: error: 'class LinkedList' has no member named 'get'
int val = myList.get(h);
^~~
exit status 1
'class LinkedList' has no member named 'add'

Any ideas of what I am doing wrong?

@americodias
Copy link
Author

If I change the board to Arduino Mega the code compiles fine. I guess this library doesn't support Arduino Nano/Arduino Nano RP2040 then.

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