Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29246 Discussions

Upper or lower case subroutine names

andrew_maidstone
Beginner
1,018 Views

I have a subroutine thatuses implicit none, and failed to compile because "sqrt" and "tanh" hadn't beendeclared. This puzzled me a while, because these functions are intrinsic. My mistake was thatbecause I had Name Case Interpretation in the project properties set to As-Is,and I should've written"SQRT" and "TANH".

The reason I selected Name Case Interpretation "As-Is", was to keep myUpper-lower case subroutine names in that format when exported in a dll.

I suppose my question is one of style: when exporting fortran subroutines ina dll, do youprefer/ recommend upper-case,a mixture or it really doesn't matter as long as you're consistent?

Thanks,

Andrew

0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,018 Views
Please don't use /names:asis.. If you want to change external name case, use the ALIAS attribute or the F2003 BIND(C,NAME='XxX') attribute.

How to name routines would depend, for me, on how I expected the names to be used. If it was from Fortran, I'd not change the case and use the default. Otherwise, I like mixed-case names.
0 Kudos
Reply