Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: gib on December 11, 2014, 04:31:49 am

Title: OpenMP missing in MinGW
Post by: gib on December 11, 2014, 04:31:49 am
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
Title: Re: OpenMP missing in MinGW
Post by: BlueHazzard on December 12, 2014, 12:47:02 am
well simply (;)) installl a compiler with this support, and point c::b to this compiler...
Title: Re: OpenMP missing in MinGW
Post by: killerbot on December 12, 2014, 07:24:53 am
see here :
http://forums.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.
Title: Re: OpenMP missing in MinGW
Post by: gib on December 16, 2014, 06:32:02 am
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