Missing ___emutls_get_address with gcc-4.7 and openMP

前端 未结 2 970
梦谈多话
梦谈多话 2021-02-20 15:51

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,

2条回答
  •  天涯浪人
    2021-02-20 16:02

    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

    brew link --overwrite gcc
    

    and the problem is solved!

    Maybe you can try to reinstall gcc to your Mac.

提交回复
热议问题