This is the mail archive of the
mailing list for the Cygwin project.
Re: Running a program in Cygwin that was compiled in Linux
- From: Eliot Moss <moss at cs dot umass dot edu>
- To: cygwin at cygwin dot com
- Date: Fri, 17 Oct 2014 11:01:31 -0400
- Subject: Re: Running a program in Cygwin that was compiled in Linux
- Authentication-results: sourceware.org; auth=none
- References: <loom dot 20141017T153243-245 at post dot gmane dot org> <CAMCbSMp62juUxOrL89VC-oHtZpr8+oGtK5z5dau6s_SvF130cg at mail dot gmail dot com>
- Reply-to: moss at cs dot umass dot edu
On 10/17/2014 10:06 AM, Arjen Markus wrote:
I doubt very much that you can just copy the object files and get a
working program that way. Does g77 have a cross-compile option?
I will go farther and say the objects simply will not work.
The object format is different, among other things. Cygwin
is not a pure emulation -- it is a *Windows* library that tries
to make Windows look like Linux (Posix, actually), mostly.
An alternative is to identify the problem areas in the programs and
adjust them to standard Fortran (g77 does allow a number of
non-standard constructs, but these date back some 30 years). If you
need help with that, you can ask on comp.lang.fortran (or perhaps on
the gfortran mailing list, though that is more for the compiler itself
than for the programs you want to build with it).
Either you need to make the program build under cygwin, using
cygwin compilers, or port the program to Windows, or run inside
a virtual machine, such as Virtual Box. Maybe a virtual machine
is your best bet here.
Regards -- Eliot Moss
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple