- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to use Fortran commons and C++ structures. All the examples show (and talk about) sharing data with C. I'm having trouble using the C++. It looks like the C++ adds a "decoration" to the variable names, etc. What do I need to do to share the data??
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same as for routines - use:
extern "C"
in the data declaration, or figure out the name mangling and specify it as an alias in the Fortran code.
Steve
extern "C"
in the data declaration, or figure out the name mangling and specify it as an alias in the Fortran code.
Steve
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page