- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.

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