Author Topic: How to enable omp.h in code blocks?  (Read 5280 times)

triwater

  • Guest
How to enable omp.h in code blocks?
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: How to enable omp.h in code blocks?
« Reply #1 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://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.
« Last Edit: June 15, 2015, 02:37:05 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline marcelinux

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: How to enable omp.h in code blocks?
« Reply #2 on: June 16, 2015, 04:09:31 pm »
I just need learn a little bit more. Thank you for your help.