LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-01-2005, 04:42 PM   #1
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
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
 
Old 01-02-2005, 12:44 PM   #2
Mohsen
Member
 
Registered: Feb 2003
Location: Iran
Distribution: Solaris 10
Posts: 201

Rep: Reputation: 30
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.

Last edited by Mohsen; 01-03-2005 at 12:07 PM.
 
Old 01-02-2005, 04:50 PM   #3
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Original Poster
Rep: Reputation: 30
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
 
Old 01-03-2005, 10:10 AM   #4
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
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++...

Last edited by deiussum; 01-03-2005 at 10:12 AM.
 
Old 01-03-2005, 12:13 PM   #5
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Original Poster
Rep: Reputation: 30
> 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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best cross platform ide? bobwall Programming 3 11-10-2011 03:16 PM
cross platform c++ nyomon Programming 6 07-03-2005 03:24 PM
Cross platform VNC ®åD\° Linux - Software 1 08-03-2004 04:04 PM
Cross Platform Shell narusegawa Linux - Software 2 06-24-2004 08:50 AM
Cross Platform biggiefatts Linux - Software 4 06-04-2002 03:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration