sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `gc'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `tool'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `cncrt'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `new_line'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `loop'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `setup'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
If you compile the firmware with the Arduino IDE, open the directory with the firmware files and remove the files easy_CNC.h and easy_CNC.cpp. Now you can open the easy_CNC.ino and compile the firmware. The multiple definitions depends on the fact that easy_CNC.ino and easy_CNC.cpp have the same code. When I developped the firmware, I used Ecplipse IDE, thus the project has the .h and .cpp files. Next I wrote the .ino file to use the ufficial IDE. Moreover, I advise you to use the Arduino IDE 1.5.6-r2, because the later versione have some problem with the code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
can you create topic compile ecnc With arduino?
I got problems and dont know what to do?
I got problems uploading ecnc to my arduino-mega.
What must i do?
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `gc'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `tool'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `cncrt'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `new_line'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `loop'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\easy_CNC.ino.cpp.o (symbol from plugin): In function `gc':
(.text+0x0): multiple definition of `setup'
sketch\easy_CNC.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
Sendt fra Windows E-post
If you compile the firmware with the Arduino IDE, open the directory with the firmware files and remove the files easy_CNC.h and easy_CNC.cpp. Now you can open the easy_CNC.ino and compile the firmware. The multiple definitions depends on the fact that easy_CNC.ino and easy_CNC.cpp have the same code. When I developped the firmware, I used Ecplipse IDE, thus the project has the .h and .cpp files. Next I wrote the .ino file to use the ufficial IDE. Moreover, I advise you to use the Arduino IDE 1.5.6-r2, because the later versione have some problem with the code.