Go Down

Topic: compile problem with adafruit library (Read 1 time) previous topic - next topic

kyrbill

I am trying to run 2 dc motors on arduino uno using adafruit librariy but when I try to upload the code i get this error message:


Arduino: 1.6.6 (Windows 10), Board: "Arduino/Genuino Uno"

WARNING: Spurious .github folder in 'Adafruit Motor Shield library' library
C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:1: warning: null character(s) ignored [enabled by default]

 A-FCDA7BA23A0F

 ^

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\5' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\26' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\7' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:5: warning: null character(s) ignored [enabled by default]

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\2' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:7: warning: null character(s) ignored [enabled by default]

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:17: warning: null character(s) ignored [enabled by default]

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\2' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:27: warning: null character(s) ignored [enabled by default]

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:35: warning: null character(s) ignored [enabled by default]

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\16' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\260' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:39: warning: null character(s) ignored [enabled by default]

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\2' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:43: warning: null character(s) ignored [enabled by default]

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\16' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\342' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:47: warning: null character(s) ignored [enabled by default]

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\1' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:2: error: stray '\36' in program

C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp:1:51: warning: null character(s) ignored [enabled by default]



cc1plus.exe: out of memory allocating 838860800 bytes

exit status 1
Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
can anyone help me?

pert

This means there are some hidden characters in the file C:\Program Files (x86)\Arduino\libraries\AFMotor\._AFMotor.cpp. This is commonly encountered when copying and pasting code from websites but there's something strange going on here because the correct file name should be AFMotor.cpp, not ._AFMotor.cpp. Where did you download the library from?

The correct place to get the library is https://github.com/adafruit/Adafruit-Motor-Shield-library

Go Up