LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   minGW: cross platform using g77? (https://www.linuxquestions.org/questions/programming-9/mingw-cross-platform-using-g77-272681/)

shengchieh 01-01-2005 04:42 PM

minGW: cross platform using g77?
 
To All:

I'm on linux machines wanting to build compilers for window OS
using g77. I'm looking at minGW. The trouble is I only see g77
for window users. I do not see g77 as cross-platform. I.e., the
cross-platform utility and documentations seem to have gcc and
g++, but not g77.

Can someone points to the correct documentation/utility?

Thanks in advance for any help.

Sheng-Chieh

Mohsen 01-02-2005 12:44 PM

I'm not sure.
Did you see this.
There is
gcc-g77-3.4.2-20040916-1-src.tar.gz (1172 kb) and also gcc-g77-3.4.2-20040916-1.tar.gz (1989 kb) available.

shengchieh 01-02-2005 04:50 PM

Thank for replying.

gcc-g77-3.4.2-20040916-1-src.tar.gz
gcc-g77-3.4.2-20040916-1.tar.gz

contain window g77 executables, not linux
g77 executables.

The way I underwtand it, minGW has everything
for window compilation. But for cross platforms,
g77 is not available.

An inefficient way is to use f2c and convert fortran
programs to c programs, and then, build cross platforms
executables. I'm trying to avoid this.

Does anybody has a better solution (beside a major rewrite
of old fortran programs to c programs)?

Sheng-Chieh

deiussum 01-03-2005 10:10 AM

I'm not completely sure I understand what it is you want. Do you want a version of g77 that will compile programs in Linux, but produce Windows binaries?

I am assuming that is what you want, because if you wanted to produce Linux binaries, you can just use the standard GNU distribution of g77... It comes with most distributions of Linux so far as I know...

So far as the first question, I can't help you much. I don't use g77, and when I want to compile something for Windows, I just compile it in Windows using Cygwin or VC++...

shengchieh 01-03-2005 12:13 PM

> I'm not completely sure I understand what it is you want. Do
> you want a version of g77 that will compile programs in Linux,
> but produce Windows binaries?

Correct! Again, I'm just investigating if I can avoid a major
rewrite. Btw, it doesn't have to be g77. Any fortran compiler
on linux, but creating window binaries will do.

> I am assuming that is what you want, because if you wanted
> to produce Linux binaries, you can just use the standard GNU
> distribution of g77... It comes with most distributions of Linux
> so far as I know...

I'm already using g77 (linux and window). It's just that the
respective binaries is for that OS.

Thanks for your help anyway.

Sheng-Chieh

p.s. Anybody else got a suggestion?


All times are GMT -5. The time now is 03:31 AM.