Libgomp.spec missing

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

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!
Thank you Duoas, it worked.

Lodi
Topic archived. No new replies allowed.