Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29298 Discussions

Case sensitivity, HDF, intrinsics not found

scrognoid
Beginner
360 Views
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.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
360 Views
Do not use /names - it is evil.

Best practice is to provide interface blocks with BIND(C,NAME="MixedCaseName").
0 Kudos
Reply