Problem with serial.print(F("A lot of times anything"))

Changing to winAVR didn't help also.

I think if I remove the --relax option during compiling:

C:\Program Files\Arduino\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections,--relax -mmcu=atmega2560 -o

the problem should be solved.

But I think I have to set up an development enviroment to be able to change that and compile it back together to executables. Am I right about that?

However, I did find a crazy workaround: If i get the errror, i just uncomment a dummy serial.print(F("anything")) i made in setup(). If error persist, i change length of that string and try again. And again. Then it works. Very strange is that if error is disappeared and i outcomment the dummystring again the error stays away while compiling. :astonished: