Re: Compiling with OpenMP support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think you mean to enable OpenMP support on a specific program, use
the -fopenmp option when you are compiling a program. I know this, but
when I do it, it gives me errors about not being able to find libgomp,
like GCC its self was not compiled with OpenMP support. Is there
something I need to do at the time I compile GCC to enable it to
compile OpenMP programs?

Or do you mean something like doing "./configure -fopenmp" or "make
-fopenmp" when I compile GCC?

On Wed, Jan 28, 2009 at 6:16 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Michael Craft <mcraft@xxxxxxxxxx> writes:
>
>> On Wed, Jan 28, 2009 at 3:54 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
>>> Michael Craft <mcraft@xxxxxxxxxx> writes:
>>>
>>>> I'm trying to compile GCC 3.4.2 with OpenMP support. How can I enable
>>>> this at compile time?
>>>
>>> gcc 3.4.2 does not support OpenMP.  The first version of gcc which
>>> supported OpenMP was gcc 4.2.
>>
>> Woops, EXTREME TYPO! I meant 4.3.2. I am using GCC 4.3.2.
>
> Ah.  In that case, use the -fopenmp option.
>
> Ian
>

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux