Hey boys, I have a little problem, I'm about to get a stepper motor to drive,
but the compilation of the program failed
I've tried different codes but with the same result
although the example is with the library Steppers, Knop.ino fails
comes with the following error messages:
knop.cpp.o: In function _GLOBAL__sub_I_MYstepper ': /usr/share/arduino/knop.ino:21: undefined reference two Stepper :: setspeed (long) '
/usr/share/arduino/knop.ino:21: undefined reference two Stepper :: step (int) ' /usr/share/arduino/knop.ino:21: undefined reference two Stepper :: Stepper (int, int, int, int, int) '
collect2: error: ld returneres 1 exit status
I use Linux, do not know if it had anything to say, have not before experienced problems
everything is spelled correctly and there are large and small lettering grouped together where they should be.
Have tried to change uppercase to lowercase.
It does not matter where I lie libraries, just the path is correct,
has put more libraries in /usr/share/Arduino/libraries/...
without that it has created problems
I think that there is somewhere that needs to be made a small correction, but where is it ???
no !!
it is not the location that is the problem,
if it was, I got a different error message,
the problem is the way Steppers are inherited, or whatever it's called !
Tried to place Stepper.cpp & stepper.hi same directory as knop.ino and then it works !!!!!
why I can not answer !!
I am happy
Hope others can get a little joy of my problems:-)
Carsten_F:
everything is spelled correctly and there are large and small lettering grouped together where they should be.
Have tried to change uppercase to lowercase.
Did you try using " " instead of <> as I suggested?
Carsten_F:
no !!
it is not the location that is the problem,
if it was, I got a different error message,
the problem is the way Steppers are inherited, or whatever it's called !
Do you still stand by that post?
Why did you not believe me? I did test it and I did tell you I tested it.