"Anonymous" <nospam@noISP.com> wrote in message
news:19yzb.416500$Fm2.424825@attbi_s04...
I have a mixed-language pgm (Fortran and C++) which needs to pass a
few
hundred values from C++ to Fortran. One way to do this is to have a
Fortran module and a C++ structure (or class) with an identical data
layout. I have used this idea with no problem, but it necessitates
making changes very carefully to the Fortran module and the C++
structure to keep them "in sync".
I am looking for a program which translates source files between
these
two formats; i e, takes a Fortran module source as input and
produces a
C++ structure source file as output, or vice versa. Then I will
maintain
one source file and run this hypothetical program before each build
to
produce the other source file.
Anyone know of such a program?
Thanks for any tips.
sherNOwoodSPAM@computer.org (remove caps to get e-mail)
If your C++ data declarations are C compatible
perhaps C2F can create a module from them.
http://home.cfl.rr.com/davegemini/C2F.ZIP
C2F.exe is a windows program
.