User forums > Using Code::Blocks

OpenMP missing in MinGW

(1/1)

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.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.

--- End quote ---

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

Navigation

[0] Message Index

Go to full version