Command line 埃菲尔铁塔中Hello World的命令行编译(未知根类错误)
我正试图在埃菲尔建立一个hello world项目,我就是这样尝试的。我使用MacOSX10.10Command line 埃菲尔铁塔中Hello World的命令行编译(未知根类错误),command-line,eiffel,Command Line,Eiffel,我正试图在埃菲尔建立一个hello world项目,我就是这样尝试的。我使用MacOSX10.10 我使用brew安装eiffelstudio安装了埃菲尔编程语言。一切正常,没有问题。我拥有/usr/local/ceral/eiffelstudio/14.05中的所有工具 我从这个网站上找到了一个示例代码: 这是代码 class ROOT_CLASS create make feature -- Initialization make -- Creati
brew安装eiffelstudio
安装了埃菲尔编程语言。一切正常,没有问题。我拥有/usr/local/ceral/eiffelstudio/14.05中的所有工具
class
ROOT_CLASS
create
make
feature -- Initialization
make
-- Creation procedure.
do
io.put_string ("Hello World!")
end
end
我试图将这段代码构建成可以执行的二进制代码
我试图ec hello.e
获取此错误消息
Configuration error: Unknown root class.
What to do: Make sure that the name given in the Ace for the root
class corresponds to a class of the universe. (If more than
one, specify the cluster, see example in ETL D.2, page 514.)
可能有什么问题?文件名和类名应该相同,因此如果您将文件重命名为
root\u class.e
或将类名更改为HELLO
我得到了root\u class二进制文件和root\u class.ecf,则错误应该消失,然后如何执行二进制文件?谢谢。@proseek,可执行文件位于EIFGENs/root\u class/W\u code
中,名称为root\u class
。通常使用命令行shell来运行它。