- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm having lots of grief relative to upper/lower case name mangling.
Motivation: HDF4 distributes compiled libraries compiled with VS 2005 and Intel Fortran. As best I can tell, they are useless in their current form, at least to me. (Yes, I can and will re-compile them, but it's hard to believe I'm the only one in the world with issues.)
They appear to be compiled "As is", with at least some mixed case names like "DFSDsetdims".
If I compile "as is", I get unresolved links for intrinsics like len_trim, loc.
If I compile "lower case", I can't link the Portability Library, which is apparently available only upper case. (True?)
If I compile "upper case", I can't link mixed case HDF4.
What is 'best practice' for dealing with case? I have similar issues mixing C and Fortran.
Motivation: HDF4 distributes compiled libraries compiled with VS 2005 and Intel Fortran. As best I can tell, they are useless in their current form, at least to me. (Yes, I can and will re-compile them, but it's hard to believe I'm the only one in the world with issues.)
They appear to be compiled "As is", with at least some mixed case names like "DFSDsetdims".
If I compile "as is", I get unresolved links for intrinsics like len_trim, loc.
If I compile "lower case", I can't link the Portability Library, which is apparently available only upper case. (True?)
If I compile "upper case", I can't link mixed case HDF4.
What is 'best practice' for dealing with case? I have similar issues mixing C and Fortran.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do not use /names - it is evil.
Best practice is to provide interface blocks with BIND(C,NAME="MixedCaseName").
Best practice is to provide interface blocks with BIND(C,NAME="MixedCaseName").

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