我试图在Genie中列出一个列表,但它似乎不起作用。编译代码:
[indent=2]
init
var l = new list of string生成以下错误:
someone@someone-UBook:~/Documents$ valac helloworld.gs helloworld.gs:2.10-2.24: error: The name `Gee' does not exist in the context of `main'
var l = new list of int
^^^^^^^^^^^^^^^
helloworld.gs:2.8-2.24: error: var declaration not allowed with non-typed initializer
var l = new list of int
^^^^^^^^^^^^^^^^^
Compilation failed: 2 error(s), 0 warning(s)我已经安装了libgee2 (通过sudo apt-get install libgee2),并且没有任何变化。有什么想法吗?
发布于 2011-12-28 03:41:51
您还需要安装libgee的开发包(apt-get install libgee-dev)并告诉valac使用它(将--pkg gee-0.8添加到valac参数中)。
https://stackoverflow.com/questions/8646701
复制相似问题