Code::Blocks Forums
User forums => Using Code::Blocks => Topic started 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
-
well simply (;)) installl a compiler with this support, and point c::b to this compiler...
-
see here :
http://forums.codeblocks.org/index.php/topic,19811.msg135320.html
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.
-
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