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


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