maybe there is some residual .o files
force rebuild
either exit and restart Arduino
or change a parameter in tools (e.g.F_CPU)
or delete temp arduino build folder