gfortran -fopenmp test.f90 /home/lcoul/download/irun/bin/../lib/gcc/i586-pc-linux-gnu/4.4.0/../../../libgomp.so: undefined reference to [EMAIL PROTECTED]' collect2: ld returned 1 exit status
Simple test program : PROGRAM test INTEGER,PARAMETER :: n=100 INTEGER :: a(n),b(n),i DO i=1,n a(i)=i ENDDO !$OMP PARALLEL DO DO i=1,n b(i)=a(i)**2 ENDDO !$OMP END PARALLEL DO WRITE(*,*) b END PROGRAM Notice that the same problem occurs on another similar computer (Debian etch) but with different undefined references (few pthread routines) -- Summary: impossible to link with -fopenmp Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: francois dot jacq at irsn dot fr GCC build triplet: 20080916 (experimental) [trunk revision 140386] GCC host triplet: i686-pc-linux-gnu Mandriva 2007.1 GCC target triplet: GNU Fortran (GCC) 4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37546