This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: MinGW gfortran and OpenMP issues...
- From: Mark Hadfield <Mark dot Hadfield at niwa dot co dot nz>
- To: Nick Chilton <nicholas dot chilton at monash dot edu>, "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 12 Jan 2012 04:40:08 +0000
- Subject: RE: MinGW gfortran and OpenMP issues...
- References: <CA+4WVXnmun77_vkL6uPrVHXcS_C2wowY57zvHEk=b-h3JPY4Qg@mail.gmail.com> <CA+4WVXm3aNCOKKyxxA4gq-63M=BFsCEAoWrWq6o5buiJVQRyXQ@mail.gmail.com>
Do you have the following directory on your PATH?
/usr/x86_64-w64-mingw32/sys-root/mingw/bin
-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Nick Chilton
Sent: Thursday, 12 January 2012 17:35
To: cygwin@cygwin.com
Subject: MinGW gfortran and OpenMP issues...
Hi,
I'm trying to compile some code with:
x86_64-w64-mingw32-gfortran.exe -o a.exe -mno-cygwin -static -O3 -cpp -Domp -fopenmp $(SOURCES) -L/lib/ -llapack -lblas
which compiles fine, but upon execution:
a.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
cygcheck shows it has no dependencies, but it seems to be looking for something. Code compiles and runs fine when the OMP sections and -fopenmp flag are removed (sequential) and compiles fine with OpenMP on Linux using ifort.
Any ideas what I'm missing?
Cheers!
Nick
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
--
Please consider the environment before printing this email.
NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple