我正在尝试使用
的几个模块Use Strn, Mindy, Info
然而,GNU编译器抱怨
Syntax error in USE statement at (1)
答案 0 :(得分:1)
如果我理解标准,每个模块必须独立。所以你应该
use Strn
use Mindy
use Info
而不是
Use Strn, Mindy, Info
以下是来自WD 1539-1 f2008草稿的复制粘贴,您可以看到每个使用声明只有一个模块名称。
use-stmt is USE [ [ , module-nature ] :: ] module-name [ , rename-list ]
or USE [ [ , module-nature ] :: ] module-name ,
ONLY : [ only-list ]
module-nature is INTRINSIC
or NON INTRINSIC
rename is local-name => use-name
or OPERATOR (local-defined-operator ) =>
OPERATOR (use-defined-operator )
only is generic-spec
or only-use-name
or rename
only-use-name is use-name