I am trying to compile a program using a self-compiled GCC-4.7.1 on Mac OS 10.8.2. The program uses openMP and the compilation succeeds; however, when I try to run the program,
I had exactly the same problem too.
And I am new to openMP, and my skill is not that good to use the solution offered by Michal Fapso.
I solve this problem by using