Clang compilation

  c++, clang, llvm

I am new to the clang++ compiler flags. I have an issue regarding compilation. Here is my cmd:

clang++ -I ../llvm-project/llvm/include -I ../llvm-project/clang/include -I ../llvm-project/build/tools/clang/include -I ../llvm-project/build/include -O3 -c $(llvm-config-7 --cxxflags) projectToTestHeadersBuilding.cpp -o projectToTestHeadersBuilding

I am getting error:

./projectToTestHeadersBuilding: cannot execute binary file: Exec format error

After execution I have projectToTestHeadersBuilding file. But I can not run executable. Can you please help me to understand how to get executable, so I can run it using ./projectToTestHeadersBuilding ?

Source: Windows Questions C++