PDA

View Full Version : QT as a GUI for fortran program - ifort



kusae
17th October 2015, 13:29
Hi,
I would like to write a GUI for my fortran program. I have read already this thread
http://www.qtcentre.org/threads/30155-running-external-console-program-by-gui-program
but I would like to ask if there is an another possibility to do that - more "natively"...
I am curious if you can "attach" the fortran code (in sources) to the GUI code and the compile it together - with ICC and IFORT from Intel..?
Maybe is this possible... maybe not I just wonder.
Many thanks
L.

anda_skoa
17th October 2015, 14:31
It is likely that this is indeed possible.

Most languages have a way to call C functions and make their functions callable from C.

This was one of the hits I found when googling for "fortran bindings"
http://fortranwiki.org/fortran/show/Generating+C+Interfaces

Cheers,
_