X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SPF_HELO_PASS,TW_BG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: carolus Subject: Re: Documentation on -mno-cygwin Accuracy Date: Tue, 07 Feb 2012 14:33:57 -0600 Lines: 20 Message-ID: References: <1328569526 DOT 8848 DOT 3 DOT camel AT YAAKOV04> <4F315473 DOT 8070106 AT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 2/7/2012 1:44 PM, Chris Sutcliffe wrote: > On 6 February 2012 14:29, Charles D. Russell wrote: >> cdr AT dell03 ~/mingtest >> $ make hello >> i686-w64-mingw32-gfortran.exe hello.f -o hello >> >> cdr AT 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