ivanseidel / ivanseidel/LinkedList
'class LinkedList<int>' has no member named 'add'
- Dominant language
- C++
- Stars
- 364
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the SimpleIntegerList.pde example and compare its LinkedList calls with the library API used by Arduino IDE 1.8.16 on a Nano RP2040. Reproduce the compilation errors for add(), size(), and get(), then determine whether the example or the library is inconsistent. Done means the example compiles and those operations work on the reported target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arduino, cpp
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100