X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DATE_IN_PAST_12_24,FREEMAIL_FROM,SPF_HELO_PASS,TW_BG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: "Charles D. Russell" Subject: Re: Documentation on -mno-cygwin Accuracy Date: Mon, 06 Feb 2012 13:29:32 -0600 Lines: 45 Message-ID: References: <1328569526 DOT 8848 DOT 3 DOT camel AT YAAKOV04> <4F315473 DOT 8070106 AT gmail DOT com> Reply-To: worwor AT bellsouth DOT net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10 In-Reply-To: <4F315473.8070106@gmail.com> 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 10:42 AM, marco atzeri wrote: > On 2/7/2012 5:13 PM, carolus wrote: >> On 2/6/2012 5:05 PM, Yaakov (Cygwin/X) wrote: >> >>> The -mno-cygwin flag is still handled by gcc3, but that is deprecated >>> and may be removed at any time. The officially supported way to >>> build such apps is to use the appropriate mingw or mingw64 >>> cross-compiler. >>> >> Is there an easy procedure that is equivalent >> to the old -mno-cygwin (suitable for a dumb engineer who is not a >> programmer and knows nothing about cross-compilation)? -mno-cygwin was a >> very handy way to distribute a cygwin fortran executable to non-cywin >> users without having to include cygwin1.dll (which I think is not >> exactly legal). >> > > define > CC=i686-pc-mingw32-gcc.exe > FC=i686-pc-mingw32-gfortran.exe > > if you want to use mingw-gcc compilers. > > similar > CC=i686-w64-mingw32-gcc.exe > FC=i686-w64-mingw32-gfortran.exe > > for the mingw64-i686-gcc compilers > > Regards > Marco > > I assume that FC and CC are for use by make, so I put them in a makefile and tried a test program with the following result: 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 -- 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