This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running a program in Cygwin that was compiled in Linux


On 10/17/2014 10:06 AM, Arjen Markus wrote:
Hi Linda,

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
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]