Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

I have developed a program using th

I have developed a program using th

I have developed a program using th

I have developed a program using the gcc compiler in Windows 10. It does everything I want it to do and now I want to be able to distribute it to other people who may not have a fortran system on their machines. (I am assuming they will be running Windows 10.) So my question is, do I need to compile it in any particular way so that it runs independently of a fortran system?

I think I have faced that question previously, but can't remember the answer.



RE: I have developed a program using th

If you build it statically i.e. no dependencies on any DLLs, then it should work on any windows system. You can create a W7 or XP VM using virtual box and test it there. If it loads and runs, then you can distribute it. You may also have to make a 32-bit and a 64-bit version in case some people decide they like it better in the 32-bit world.

RE: I have developed a program using th

Thanks for that. I take it you mean I should compile using the -static switch. I had not considered making 32-bit and 64-bit versions. My PC uses Windows 10 64 bits. How could I build a 32-bit version?

RE: I have developed a program using th

Check if -m32 works. If it doesn't, get multilib. To run 64 bit run on a normal cmd prompt. To run 32 bit, you can either use the cmd prompt from windows\system32 or the one from windows\syswow64

RE: I have developed a program using th

Many thanks. I'll give it a go.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close