Call fortran in C++ project



Hi, All:
I plan to using a fortran 90 program in C++. I have no experience
about that, and I have some question about that.

1. I think I have two methods to using the fortran 90 program.
First, compile all the .f90 and .cpp to .obj, and link them. Second,
make the fortran 90 program to a dll, and call it in C++ project. I
want to know, which is better, and how I should do?
2. In the fortran 90 program, there many Types. How can I using
them in C++.

Thank you very much.
.



Relevant Pages

  • Re: FFTW and ifort
    ... A second thing is that also that the plan should be intentsince ... parameters to be passed by reference (as for Fortran 77). ... maybe you need to declare everything as intent? ... say whether that is the case for the arrays as you've declared them ...
    (comp.lang.fortran)
  • Layered products not available on IA64
    ... plan to upgrade it? ... I think it is required to use the "Dictionary" statement in Fortran. ... We use it to make Datatrieve record structures available to Fortran. ...
    (comp.os.vms)
  • Re: RISC OS-friendly universities
    ... I used Fortran 77, but I learned to program in Cobol and Plan. ... sent me on a Cobol course and I had to learn Plan from the teach ... "You can't have Windows without pains." ...
    (comp.sys.acorn.misc)
  • Re: [9fans] Plan 9 on Blue Gene
    ... LANL, named Fred, written in Fortran, that has been in use for longer ... It seems like there should be a Ratfor to C translator in Plan 9, ... only for nostalgia. ...
    (comp.os.plan9)
  • Re: Speedup NEC-Engine, using multiple CPU-Cores
    ... On Sep 25, 5:12 am, Nate Bargmann ... Hmmm.. ... Isn't that the version that used f2c to convert the FORTRAN to ... Probably a bad plan overall.. ...
    (rec.radio.amateur.antenna)