g++: error: libgomp.spec: No such file or directory

不打扰是莪最后的温柔 提交于 2019-12-23 10:00:01

问题


I use g++ (GCC) 4.7.2. on Windows 7, 64-bit version.

downloaded from http://nuwen.net/mingw.html

I tried to use the "-fopenmp" flag and got the error:

g++: error: libgomp.spec: No such file or directory

I can't find the file anywhere on my system. Do I need to re-install something? Can I just throw a file somewhere?


回答1:


You could try installing TDM-GCC, which looks as though it includes OpenMP.

There's also Sezero's personal build.




回答2:


I had a similar problem. I got it working installing one of the version at the following discussion. Which version of MinGW should I use

I don't have access to my windows machine now so I don't know which version I used but I can check on Monday if you don't have it working by then. It might have been this one. http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/



来源:https://stackoverflow.com/questions/17118265/g-error-libgomp-spec-no-such-file-or-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!