Hello everyone,
This is my first post here, I hope this is the right place to bring up this issues.
I'm new Teensy adaptor and fairly new to c++ so please forgive any ignorance that I might show.
I'm trying to load the smoothing example that comes with arduino to Teensy 3.1, and I get the following error when compiling.
index(const char*, int)'
sketch_apr06a.ino: In function 'void loop()':
sketch_apr06a:48: error: invalid types 'int [10][char*(const char*, int)]' for array subscript
sketch_apr06a:50: error: invalid types 'int [10][char*(const char*, int)]' for array subscript
sketch_apr06a:52: error: invalid types 'int [10][char*(const char*, int)]' for array subscript
sketch_apr06a:54: error: assignment of function 'char* index(const char*, int)'
sketch_apr06a:54: error: cannot convert 'char* (*)(const char*, int)' to 'char*(const char*, int)' in assignment
sketch_apr06a:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
sketch_apr06a:59: error: assignment of function 'char* index(const char*, int)'
sketch_apr06a:59: error: cannot convert 'int' to 'char*(const char*, int)' in assignment
This program will be fundament I think for what I'm trying to do, which is collect biosignals using an EMG.
I will really appreciate if someone could give some advice as how to move forward.
Thanks in advanced.
This is my first post here, I hope this is the right place to bring up this issues.
I'm new Teensy adaptor and fairly new to c++ so please forgive any ignorance that I might show.
I'm trying to load the smoothing example that comes with arduino to Teensy 3.1, and I get the following error when compiling.
index(const char*, int)'
sketch_apr06a.ino: In function 'void loop()':
sketch_apr06a:48: error: invalid types 'int [10][char*(const char*, int)]' for array subscript
sketch_apr06a:50: error: invalid types 'int [10][char*(const char*, int)]' for array subscript
sketch_apr06a:52: error: invalid types 'int [10][char*(const char*, int)]' for array subscript
sketch_apr06a:54: error: assignment of function 'char* index(const char*, int)'
sketch_apr06a:54: error: cannot convert 'char* (*)(const char*, int)' to 'char*(const char*, int)' in assignment
sketch_apr06a:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
sketch_apr06a:59: error: assignment of function 'char* index(const char*, int)'
sketch_apr06a:59: error: cannot convert 'int' to 'char*(const char*, int)' in assignment
This program will be fundament I think for what I'm trying to do, which is collect biosignals using an EMG.
I will really appreciate if someone could give some advice as how to move forward.
Thanks in advanced.