2011-12-27 2 views
2

Genieでリストを作成しようとしていますが、動作しないようです。コードのコンパイル:リストを作成しようとしています:名前「Gee」は存在しません

[indent=2] 
init 
    var l = new list of string 

すると、これらのエラーを生成します。

[email protected]:~/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) 

私は(sudoのlibgee2をインストールapt-getを経由して)libgee2と何も変更をインストールしました。何か案は?

答えて

5

libgee(apt-get install libgee-dev)の開発パッケージをインストールし、valacにそれを使用するように指示する必要があります(valac引数に--pkg gee-0.8を追加する)。

関連する問題