arm-linux-gnueabihf-gcc: error: unrecognized argument in option '-mfpu=neon-vfpv3' code example

Example: arm-linux-gnueabihf-gcc: error: unrecognized argument in option '-mfpu=neon-vfpv3'

the compiler "arm-linux-gnueabhihf-gcc" is not able to support "-mfpu=neon-vfpv3"

you can check whether your "arm-linux-gnueabihf-gcc" supports any particular option like below:

eg 1:(unable to recognize neon-vfpv3)
prashad@ubuntu:/$ arm-linux-gnueabihf-gcc --target-help | grep neon-vfpv3
prashad@ubuntu:/$

eg 2:(recognised neon-vfpv4 option)
prashad@ubuntu:/$ arm-linux-gnueabihf-gcc --target-help | grep neon-vfpv4  
    crypto-neon-fp-armv8 fp-armv8 fpv4-sp-d16 fpv5-d16 fpv5-sp-d16 neon neon-fp-armv8 neon-fp16 neon-vfpv4 vfp vfp3 vfpv3
prashad@ubuntu:/$

Tags:

C Example