C++ and FORTRAN
Hi, I'm presently using Visual C++ to write and compile my code, but might need to convert to using FORTRAN. I heard from my senior that it is actually possible to use C++ code and compile under FORTRAN, or something like that. Is this possible? Or rather, is there any way for me to run my code under FORTRAN without changing my present C++ text to FORTRAN language? Thanks!!
|
Re: C++ and FORTRAN
You have to carry out the changes since you are using VC++. MS uses libraries that may not be available if you are using a fortran compiler from some other vendor. Under linux there is a utility available that can convert C code to Fortran. Intel has free fortran 90 compiler available for personal use.
|
Re: C++ and FORTRAN
Also, the sooner you stop using VC++, the better. Linux can handle such jobs better.
|
Re: C++ and FORTRAN
Ok, thanks for the advice, Leo :)
|
Re: C++ and FORTRAN
It is also possible to call a c subroutine from fortran (and vice versa) if thats any use to you?
|
All times are GMT -4. The time now is 02:29. |