Click here to Skip to main content
15,918,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to use C++ with fortran.
Whether have any limitation on the windows operating system to use mix programming especially fortran & c++?
And can run a program written that linux,on windows?
Posted

You can mix C++ and Fortran - it's especially handy if you want to use some of the high speed numerical libraries written in Fortran in C++ programs.

How you do it depends on your compilers and build environment. And provided you don't use any OS facillities you'll have no more difficulty porting code from OS to OS than you would with code written in a single language.

Cheers,

Ash
 
Share this answer
 
If a program is console only, then you can compile it for windows. If it uses any sort of window or other external library, you may have trouble. I have no idea how you'd get Fortran and C++ to talk, but if the Fortran can use named pipes, WM_COPYDATA messages, COM, etc, then you should be able to find a way.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900