[Mingw-users] gfortran and openmp

アーカイブの一覧に戻る

MinGW Users List mingw****@lists*****
Mon Feb 12 07:45:33 JST 2018


Ciao.


We just ran the same commands and we didn't get any error message.


[cid:617ca7c4-a070-4195-b8af-8e6b0840fe3c]


Happy to assist with more testing.


________________________________
From: mingw****@lists***** <mingw****@lists*****> on behalf of MinGW Users List <mingw****@lists*****>
Sent: Monday, 12 February 2018 7:54 AM
To: mingw****@lists*****
Subject: [Mingw-users] gfortran and openmp

Hi,

In trying to compile a fortran program that uses the intrinsic OpenMP module,
I run into the following error.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
erik at MOBY ~
$ cat omptst1.f90
program omptest
   use :: omp_lib
end

erik at MOBY ~
$ gfortran -c -fopenmp omptst1.f90
omptst1.f90:2:9:

    use :: omp_lib
         1
Fatal Error: Can't open module file 'omp_lib.mod' for reading at (1): No such fi
le or directory
compilation terminated.

erik at MOBY ~
$ cat omptst2.f90
program omptest
   use, intrinsic :: omp_lib
end

erik at MOBY ~
$ gfortran -c -fopenmp omptst2.f90
omptst2.f90:2:20:

    use, intrinsic :: omp_lib
                    1
Fatal Error: Can't find an intrinsic module named 'omp_lib' at (1)
compilation terminated.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It seems the compiler can't locate the appropriate file (neither can I).
The output of gfortran -v shows that it is configured with --enable-libgomp.
mingw-get shows me the package mingw32-libgomp has been installed.
Do I have to install any additional package to get this file?

With kind regards,
Erik Toussaint.

P.s.: Thank you, to everybody who participated and still participates
in creating
and maintaining MinGW.

_______________________________________________
MinGW-Users mailing list
MinGW****@lists*****

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
Mailing Lists | MinGW<http://www.mingw.org/Mailing_Lists>
www.mingw.org
MinGW offers several mailing lists open for discussion on feedback, bug reports, and user help. Searchable on-line archives of the mailing lists also provide a very ...


We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:mingw****@lists*****?subject=unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.osdn.me/mailman/archives/mingw-users/attachments/20180211/11be9d3f/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 4837 bytes
Desc: pastedImage.png
Url : https://lists.osdn.me/mailman/archives/mingw-users/attachments/20180211/11be9d3f/attachment.png 



More information about the MinGW-Users mailing list
アーカイブの一覧に戻る