News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

OpenMP missing in MinGW

Started by gib, December 11, 2014, 04:31:49 AM

Previous topic - Next topic

gib

Hi,
I installed C::B from codeblocks-13.12mingwsetup.exe.  After spending quite a lot of time trying to build a Fortran DLL with -fopenmp, I finally realized that the MinGW installation in C::B does not include libgomp.lib, i.e. no OpenMP.  I presume this is a deliberate decision.  It would be helpful if somebody could tell me how to set up C::B on Windows in order to be able to build programs with OpenMP (my Linux installation works fine out of the box).

Thanks
Gib

BlueHazzard

well simply (;)) installl a compiler with this support, and point c::b to this compiler...

killerbot

see here :
http://forums.next.codeblocks.org/index.php/topic,19811.msg135320.html
Quote
More information and downloads are available at <http://tdm-gcc.tdragon.net/>. TDM-GCC includes support for C, C++, Fortran, Objective-C/C++, and Ada, as well as support for the OpenMP multithreading extensions, packaged in a simple Windows installer.

gib

Thanks guys.  I installed mingw-w64, which includes mingw32, and it's all working now.  I also figured out how to use cmake to generate the .cbp file, once I learned that the compiler options need to be specified in CMakeLists.txt.

Best
Gib