Atmel Studio 6 Linker Error : collect2: ld [solved]

Solved! Just flipped the order of libm and libcore in the linker settings and it worked. Here is the Link to the avr forum that helped.