I am trying to compile a C PROGRAM (Echo1.C) on Cygwin using GCC Compiler. I type the following command to compile it:
# gcc -c Echo1.C -o Echo1
This works fine, and it creates an executable called "Echo1", but when I try to execute this, I get the following error:
./Echo1: ./Echo1: cannot execute binary file
Is anything wrong with my approach? Please advise!
Thanks in advance.