Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: triwater on June 15, 2015, 11:56:29 am

Title: How to enable omp.h in code blocks?
Post by: triwater on June 15, 2015, 11:56:29 am
I need some help on how to set code blocks to enable omp.h. I have followed the instruction I can find online, but I still got the warning ignoring #pragma omp parallel.

I have tried to put -fopenmp in Compiler settings->Compiler settings -> Other options and also add the exact address of libgomp-1.dll in linker library.
Title: Re: How to enable omp.h in code blocks?
Post by: stahta01 on June 15, 2015, 01:32:01 pm
Step0: Read this site rules and FAQs
http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)
http://wiki.codeblocks.org/index.php?title=FAQ (http://wiki.codeblocks.org/index.php?title=FAQ)
Step1: Learn the name and version of your Compiler
Step2: Learn how to do what you want with your Compiler
Step3: Ask where to enter the options found in step 2 on this site

Tim S.
Title: Re: How to enable omp.h in code blocks?
Post by: marcelinux on June 16, 2015, 04:09:31 pm
There are some videos in youtube, like https://www.youtube.com/watch?v=p0woqF2XCeg
or https://www.youtube.com/watch?v=oiARwi0fJOU