我想使用this软件包。在sudo ninja install -C builder
之后,我收到一条错误消息,指出未找到.so,然后我在usr / lib中手动移动了.so。之后,这个例子
//valac console.vala --pkg gpseq-0.1
using Gpseq;
void main(){
string[] array = {"dog", "cat", "pig", "boar", "bear"};
Seq.of_array<string>((owned) array)
.filter((g) => g.length == 3)
.foreach((g) => print("%s\n", g));
}
编译并在以下版本上工作:Ubuntu 18.04,Ubuntu 19.04和基本5.0(已在VM中检查),但在我的主机系统上却显示错误:
//usr/bin/ld: /tmp/ccsZRFPz.a: in function `_value_main':
console.vala.c:(.text+0x1fd): undefined reference to
`gpsed_seq_of_array'
//usr/bin/ld: console.vala.c:(.text+0x226): undefined reference
to `gpsed_seq_filter'
//usr/bin/ld: console.vala.c:(.text+0x24f): undefined reference
to `gpsed_seq_foreach'
collect2: error: LD execution failed with return code 1
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)