Was having the same issue using Eclipse Arduino plugin. Would compile in Arduino, but not in Eclipse.
Solved by adding -larm_cortexM4l_math to extra parameters to "combiner" in project properties, C/C++ Build, Settings, Arduino Combiner, Command Line Pattern. That's where I added it.