compilation errror

hi, this is my first post i think, please forgive me for misuse of this forum.

I have a program, marlin (a 3d printing firmware) and i am getting this error code:

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::codebits'

sketch\gcode.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\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::command_ptr'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::param'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::reset()'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::string_arg'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::command_letter'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::codenum'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::parse(char*)'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::unknown_command_error()'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `parser'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::value_ptr'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.cpp.o (symbol from plugin): In function `GCodeParser::codebits':

(.text+0x0): multiple definition of `GCodeParser::volumetric_enabled'

sketch\gcode.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\parser.h:62:21: warning: type of 'codebits' does not match original declaration

static uint32_t codebits; // Parameters pre-scanned

^

sketch\parser.cpp:56:12: warning: type of 'codebits' does not match original declaration

uint32_t GCodeParser::codebits; // found bits

^

sketch\parser.h:62:21: warning: type of 'codebits' does not match original declaration

static uint32_t codebits; // Parameters pre-scanned

^

sketch\gcode.cpp:56:8: note: previously declared here

byte GCodeParser::codebits[4]; // found bits

^

collect2.exe: error: ld returned 1 exit status

exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560.

could be anything, I am not well versed in reading error messages, thanks in advance for helping me out

This is NOT the proper forum to discuss code for 3D printers. Especially code that you couldn't be bothered to post.

Looks like you have a bad copy of Marlin. I recommend you delete the entire folder and re-install it from the source:

http://marlinfw.org/meta/download/

Then copy the Configuration.h and Configuration_adv.h from the appropriate subdirectory of "example_configurations" to the main directory.

Then try the compile again. If it still fails, try removing and re-installing the Arduino IDE. Don't forget to delete the Arduino15 directories that may contain out-of-date tools:

A bunch of people have had IDE problems, including IDE crashes and bizarre compile errors, when they install a new version of the IDE. At least some of those problems seem to be caused by incompatible executables and preference files that the IDE saves outside the IDE installation directory. Perhaps that is what is causing your particular problem. In such cases it appears that the fix is to delete or rename the old "Arduino15" directory and re-install the new IDE.

On Mac OS X: /Users/(username)/Library/Arduino15 (a.k.a. ~/Library/Arduino15) (Note: The 'Library' folder is greyed out in Finder. The folder can't be opened with a double-click. To browse the contents of 'Library', ctrl-click on it and select "Open in New Tab" from the pop-up menu.)

On Windows delete or rename both: Arduino IDE 1.6.5r5 and previous: C:\Users(username)\AppData\Roaming\Arduino15 Arduino IDE 1.6.6 and later: C:\Users(username)\AppData\Local\Arduino15

On Linux: /home/(username)/.arduino15 (a.k.a. ~/.arduino15) (Note: file/folder names starting with '.' are not normally shown in directory listings. Use 'ls -a' to get a directory listing that includes the hidden files.)

kieranpat: could be anything, I am not well versed in reading error messages, thanks in advance for helping me out

Read the messages, they are very clear about codebits being declared differently in two different files. You get filenames but not line numbers because its the linker than detected the problem, not the compiler, but try searching for "codebits" in each file.