Author Topic: OpenMP with GCC  (Read 5351 times)

Offline ccheng_leo

  • Single posting newcomer
  • *
  • Posts: 3
OpenMP with GCC
« on: January 29, 2010, 05:12:25 am »
Hi,
I'm a newer to Linux and Code::Blocks. I want to develop some programs with Code::Blocks, GCC supporting for OpenMP on OpenSuse. But I can't make the complier enable the OpenMP because I can't find -fopenmp in Settings/Complier and debugger settings. My current GCC verison is 4.41 and I already have libgomp 4.4. How should I do?

Thanks,
Help,
Please.

Offline ccheng_leo

  • Single posting newcomer
  • *
  • Posts: 3
Re: OpenMP with GCC
« Reply #1 on: January 29, 2010, 05:35:13 am »
Why -fopenmp didn't appear in the menu?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: OpenMP with GCC
« Reply #2 on: January 29, 2010, 07:05:20 am »
Why -fopenmp didn't appear in the menu?

We can not put each and every switch in the "Compiler flags" list, there are too much.

Just put "-fopenmp" in "Other options".
This works for all options, that are not in "Compiler flags", options you have in the "Compiler flags" list are ignored and removed from "Other options".

Offline ccheng_leo

  • Single posting newcomer
  • *
  • Posts: 3
Re: OpenMP with GCC
« Reply #3 on: January 29, 2010, 07:56:19 am »
Thanks a lot lot lot. It seems so easy.