我正在尝试从源代码构建igraph
R包。源代码是从official igraph site下载的。在尝试为此构建程序包时,使用install
中的devtools
函数(即install("igraph")
),我收到以下错误:
In file included from dqueue.c:29:0:
dqueue.pmt:59:35: error: unknown type name 'TYPE'
dqueue.pmt:83:39: error: unknown type name 'TYPE'
dqueue.pmt:103:52: warning: type defaults to 'int' in declaration of 'TYPE' [enabled by default]
dqueue.pmt:103:1: warning: parameter names (without types) in function declaration [enabled by default]
dqueue.pmt:103:71: error: expected ';', ',' or ')' before '*' token
dqueue.pmt:119:39: error: unknown type name 'TYPE'
dqueue.pmt:139:45: error: unknown type name 'TYPE'
dqueue.pmt:156:46: warning: type defaults to 'int' in declaration of 'TYPE' [enabled by default]
dqueue.pmt:156:1: warning: parameter names (without types) in function declaration [enabled by default]
dqueue.pmt:156:65: error: expected ';', ',' or ')' before '*' token
dqueue.pmt:180:1: error: unknown type name 'BASE'
dqueue.pmt:180:42: warning: type defaults to 'int' in declaration of 'TYPE' [enabled by default]
dqueue.pmt:180:1: warning: parameter names (without types) in function declaration [enabled by default]
dqueue.pmt:180:61: error: expected ';', ',' or ')' before '*' token
dqueue.pmt:198:1: error: unknown type name 'BASE'
dqueue.pmt:198:42: warning: type defaults to 'int' in declaration of 'TYPE' [enabled by default]
dqueue.pmt:198:1: warning: parameter names (without types) in function declaration [enabled by default]
dqueue.pmt:198:61: error: expected ';', ',' or ')' before '*' token
dqueue.pmt:219:1: error: unknown type name 'BASE'
dqueue.pmt:219:35: error: unknown type name 'TYPE'
dqueue.pmt:247:1: error: unknown type name 'BASE'
dqueue.pmt:247:40: error: unknown type name 'TYPE'
dqueue.pmt:282:35: error: unknown type name 'TYPE'
dqueue.pmt:282:59: error: unknown type name 'BASE'
dqueue.pmt:372:1: error: unknown type name 'BASE'
dqueue.pmt:372:38: warning: type defaults to 'int' in declaration of 'TYPE' [enabled by default]
dqueue.pmt:372:1: warning: parameter names (without types) in function declaration [enabled by default]
dqueue.pmt:372:58: error: expected ';', ',' or ')' before '*' token
make: *** [dqueue.o] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-32~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="riyerGraph.dll" SHLIB_LIBADD='$(FLIBS)' ' had status 2
ERROR: compilation failed for package 'igraph'
现在,文件dqueue.c位于以下位置的igraph
的git代理中:dqueue.c。
头文件dqueue_pmt.h确实包含了类型的宏,它们在dqueue.pmt文件中以某种方式不可见。
我缺少什么?
注意:我从我下载的源代码安装此软件包,而不是从已在线提供的软件包中安装。