问题
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