Author Topic: OpenMP missing in MinGW  (Read 9489 times)

Offline gib

  • Multiple posting newcomer
  • *
  • Posts: 42
OpenMP missing in MinGW
« 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

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: OpenMP missing in MinGW
« Reply #1 on: December 12, 2014, 12:47:02 am »
well simply (;)) installl a compiler with this support, and point c::b to this compiler...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: OpenMP missing in MinGW
« Reply #2 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.

Offline gib

  • Multiple posting newcomer
  • *
  • Posts: 42
Re: OpenMP missing in MinGW
« Reply #3 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