Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have developed a program using th

Status
Not open for further replies.

AlanJT

Programmer
Aug 11, 2020
7
GB
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.

Thanks,

Alan.
 
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.
 
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?
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top