Error : Invalid ELF header

Im Install linux image file in lichee-pi from .
i write this image succesfully. I write one simple c program. and trying to comile using cc command but its showing error like /usr/lib/gcc/arm-linux-gnueabihf/4.9/cc1: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/ invalid ELF header. what is wrong here,what should i do now??

please us “file” command to check the so information, it seems so and env not match