Code::Blocks Forums

User forums => Help => Topic started by: ccheng_leo on January 29, 2010, 05:12:25 am

Title: OpenMP with GCC
Post by: ccheng_leo 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.
Title: Re: OpenMP with GCC
Post by: ccheng_leo on January 29, 2010, 05:35:13 am
Why -fopenmp didn't appear in the menu?
Title: Re: OpenMP with GCC
Post by: Jenna 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".
Title: Re: OpenMP with GCC
Post by: ccheng_leo on January 29, 2010, 07:56:19 am
Thanks a lot lot lot. It seems so easy.