Libgomp.spec missing

Jul 11, 2016 at 7:14am
Hi, tried using openMP using a g++ compiler on the command prompt of a Windows 7 computer. This is my compilation line:

C:\Users\Ian\Desktop\Phd\programs>g++ -std=c++11 main.cpp Global.cpp -fopenmp

I get the following error after compilation:

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

Assistance would be appreciated.

Thanks

Jul 11, 2016 at 2:25pm
You have to make sure your GCC has OpenMP support enabled.
Every version of MinGW is different.

I recommend TDM-GCC: http://tdm-gcc.tdragon.net/download

Make sure you select OpenMP from the optional packages when installing.

Once done, put TDM's bin directory at the head of the path and then try compiling again.

Good luck!
Jul 12, 2016 at 12:45pm
Thank you Duoas, it worked.

Lodi
Topic archived. No new replies allowed.