- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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
コピーされたリンク
1 返信
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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.
