One of my friends wants to know how to run OpenMP using multi-core while compiling...
I think that just adding -fopenmp does not make Windows use multi-core while compiling...
If you are looking for a parallel version of the compiler, then you should check the compiler documentation, btw... what compiler are you using?
-fopenmp is the option for gcc and gfortran (maybe other compilers as well, but I don't know) for compiling #omp pragmas or !$OMP directives respectively.
If you have lots of source code files, then I think the fastest way of taking advantage of multiprocessing would be using some version of gnu make, which in Linux has an option for building in parallel. Unfortunately I don't know in Windows, but I'm rather confident that the Windows version would be able to parallelize the build too.
Edit: I just add an URL related to this (just the first I found) http://www.codesynthesis.com/~boris/blo ... mand-line/