Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Adding GUI to Fortran programs

atique_ahmad
Beginner
896 Views
I am a new user of Intel Fortran compiler. Can someone tell me how to add some simple GUI to my prgorams compiled by IFC? Someone told me about JAPI, but IFC says that this module was not compiled using IFC!
0 Kudos
3 Replies
f2003
Beginner
896 Views
o,my God.

did you really nead a gui for your Fortran programs?
0 Kudos
Steven_L_Intel1
Employee
896 Views

I am not familiar with JAPI, but if it provides .mod files you need to make sure that it was built with Intel Fortran.

0 Kudos
joseph-krahn
New Contributor I
896 Views
Currently, the simplest approach is not to try to write a GUI in Fortran, but to use another programming language. The best approach depends on whether you just want a nice dialog for generating parameters, or if you need plotting, or if are trying to actually do interactive real-time calculations.

For input generation, you could use a script language, like Tcl/Tk, to generate input data for a Fortran executable which is run separately, and which can plot results when the Fortran code is finished.

ISO-C-BINDING is an upcoming feature, being implemented in many Fortran compilers (i.e. Intel 10 beta). This will allow for for efficient, portable interfacing to C librarties as a standard language feature, and will likely become the normal approach to working with GUI and other non-math programming. I have had good results experimenting with interfacing Fortran to FLTK. In the near future, I expect to have some good Fortran/FLTK examples. It is probably better to look to this for long-term plans, but not really good for rith now, unless you want to delve into C code and experimenting with bleeding-edge Fortran features.
0 Kudos
Reply