This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [omp] can not find omp.h


Hi Asma,

> I tried to compile c++ program with openMP directives, but the
> compiler (gcc version 4.4.2) can not find omp.h
> I tried to install libgomp1:
> 
> 1) rpm -ivh libgomp1-4.4.2-5mnb2.i586.rpm 
> Préparation...              ########################################### [100%]
>     paquetage libgomp1-4.4.2-5mnb2.i586 already installed
> 
> 2) locate libgomp
> /usr/lib/libgomp.so.1
> /usr/lib/libgomp.so.1.0.0
> 
> but I can not find omp.h in /usr/include
> 
> any one has an idea about this problem, I waist alot of time searching
> in internet for a solution but in vain
as the compiler tries to find "omp.h", you should install it;-) 

To me, libgomp1-4.4.2-5mnb2.i586.rpm seems to contain only the
runtime-libraries, not the files needed for developing (like the
header-files). These are (probably) contained in
libgomp1-devel-4.4.2-5mnb2.i586.rpm - but that depends on your operation
System (Linux?) and Distribution (Mandriva?); so you should ask on a
mailing-list for your distribution...

HTH,

Axel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]