News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

OpenMP with GCC

Started by ccheng_leo, January 29, 2010, 05:12:25 AM

Previous topic - Next topic

ccheng_leo

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.

ccheng_leo

Why -fopenmp didn't appear in the menu?

Jenna

Quote from: ccheng_leo on January 29, 2010, 05:35:13 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".

ccheng_leo

Thanks a lot lot lot. It seems so easy.