how to use fortran modules in c++

S

Santosh

Hello,
I am trying to do some interfacing between c++ and fortran,
so my fortran code (say function foo )makes use of the data defined in
the modules.
Now, I call foo (fortran function) from my c++ code, How do I access
all the data of the
modules in my c++ code after calling the function foo (the foo
manipulates with that data)
I am using g95 for my Fortran and gcc version 3.3 for c++.
Any help would be appreciated
Regards
 
V

Victor Bazarov

Santosh said:
I am trying to do some interfacing between c++ and fortran,
[...]
I am using g95 for my Fortran and gcc version 3.3 for c++.

Multilanguage programming is not defined in C++ beyond some vague
notion of "langauge linkage". All those aspects are implementation-
specific and should be asked about in a newsgroup for the compiler
you intend on using.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top