Using -mfloat-abi=hard in eclipse
===

I am trying to cross compile in eclipse using the arm gcc compiler. I go to projrct , properties and set the c/c++ compile option and set the flag to  -mfloat-abi=hard.
It throws the following exception while building:




    **** Build of configuration Debug for project HelloWorld ****

    make all 
    Building target: HelloWorld
    Invoking: GCC C Linker
    arm-linux-gnueabi-gcc -L/usr/arm-linux-gnueabi/lib -mfloat-abi=hard -o "HelloWorld"  ./src/HelloWorld.o   
    /usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../arm-linux-gnueabi/bin/ld: error: ./src/HelloWorld.o uses VFP register arguments, HelloWorld does not
    /usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../arm-linux-gnueabi/bin/ld: failed to merge target specific data of file ./src/HelloWorld.o
    collect2: ld returned 1 exit status
    make: *** [HelloWorld] Error 1
    
    **** Build Finished ****

It builds fine without that flag. But I need to set it for it to run on the beaglebone.Any ideas what I am doing wrong?

