Problem between 2 computers

So.... my biblically slow old laptop will load the Repetier.h and associated files fine to my 3d printer.

But, copy that entire directory over to my workshop PC and it throws up an error:

Archiving built core (caching) in: C:\Users\Steve\AppData\Local\Temp\arduino_cache_813569\core\core_arduino_avr_mega_cpu_atmega2560_4083992107971d5d9442ad34fbb68e0f.a
C:\Users\Steve\AppData\Local\Temp\cc0M571j.ltrans0.ltrans.o: In function `Com::printFLN(char const*, unsigned long)':

<artificial>:(.text+0x4d2e): undefined reference to `stepperWait'

<artificial>:(.text+0x4d36): undefined reference to `stepperWait'

C:\Users\Steve\AppData\Local\Temp\cc0M571j.ltrans0.ltrans.o: In function `Com::printFLN(char const*, int)':

<artificial>:(.text+0x4d3e): undefined reference to `stepperWait'

<artificial>:(.text+0x4d4c): undefined reference to `stepperWait'

C:\Users\Steve\AppData\Local\Temp\cc0M571j.ltrans0.ltrans.o: In function `__vector_17':

<artificial>:(.text+0x4d50): undefined reference to `stepperWait'

C:\Users\Steve\AppData\Local\Temp\cc0M571j.ltrans0.ltrans.o:<artificial>:(.text+0x4d56): more undefined references to `stepperWait' follow

collect2.exe: error: ld returned 1 exit status

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

I have checked all the libraries I think Repetier uses and they seem the same.
Both the laptop and the PC are running IDE version 1.8.5 (Sorry, the new one sucks... nothing seems to work in it).

Any ideas where the issue may lie?

Not with the bootloader, that's for sure.

Double check your library installations - it looks like you have .h files, but not .cpp.

I moved your topic to a more appropriate forum category @anon64083092.

(it was originally in Avrdude, stk500, Bootloader issues, hence SemperIdem's comment re: "bootloader")

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.

@anon64083092
Do you have the code then we might be able to find the errors

It's apparently a known issue with the Arduino IDE not supporting it after a certain version (how when I have the same version on both computers)

I need to insert 'volatile long attribute((used)) stepperWait = 0;' in the Hal.cpp file apparently.

We will see

I though I did have the correct category.... IDE? Oh well.

Indeed. Add 'volatile long attribute((used)) stepperWait = 0;' to Hal.cpp instead of long stepperWait = 0; (around line 600) and it fixes it.