On 2/7/2012 1:44 PM, Chris Sutcliffe wrote:
On 6 February 2012 14:29, Charles D. Russell wrote:
cdr@dell03 ~/mingtest
$ make hello
i686-w64-mingw32-gfortran.exe    hello.f   -o hello

cdr@dell03 ~/mingtest
$ ./hello
/home/cdr/mingtest/hello.exe: error while loading shared libraries:
libgfortran-
3.dll: cannot open shared object file: No such file or directory

Likely because /usr/i686-w64-mingw32/sys-root/mingw/bin is not in your
$PATH.  You can either compile it statically (so the shared library is
not required), add the path I mentioned to your $PATH, or copy
libgfortran-3.dll to the same path as hello.exe.

Chris

Yes, -static serves my purpose.  Thanks


--
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

Reply via email to