集成R和kdb时出现Makefile错误

时间:2013-10-13 09:01:54

标签: kdb

我在Linux上使用试用版。我复制了kx svn中的所有文件,但是当我运行make文件时,我一直在k.h中收到错误。它是kx版本错误吗?

/usr/lib/R/bin/R CMD gcc -g -O -fPIC -m64   -shared -D KXVER=3 -I. -I/usr/share/R/include base.c c.o -lpthread -L/usr/lib/R/lib -lR -o qserver.so  
In file included from base.c:11:0:  
./k.h:1:1: error: expected identifier or â(â before â<â token  
./k.h:20:5: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â&â token  
./k.h:20:13: error: expected identifier or â(â before numeric constant  
./k.h:20:18: error: invalid digit "9" in octal constant  
./k.h:20:34: error: invalid suffix "d" on integer constant  
./k.h:20:40: error: invalid suffix "h" on integer constant  
./k.h:27:17: error: expected identifier or â(â before â<â token  
 In file included from base.c:11:0:  
./k.h:31:150: error: expected identifier or â(â before â-â token  
./k.h:31:167: error: expected identifier or â(â before â-â token  
./k.h:31:167: error: stray â#â in program  
./k.h:31:215: error: expected identifier or â(â before â&â token  
./k.h:31:215: error: stray â#â in program  
./k.h:31:224: error: expected identifier or â(â before â-â token  
./k.h:31:224: error: stray â#â in program  
./k.h:31:285: error: expected identifier or â(â before â&â token  
./k.h:31:285: error: stray â#â in program  
./k.h:31:294: error: expected identifier or â(â before â-â token  
./k.h:31:294: error: stray â#â in program  
./k.h:31:356: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â-â token  
In file included from base.c:11:0:  
./k.h:31:603: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â-â token  
./k.h:31:603: error: stray â#â in program  
./k.h:31:693: error: expected identifier or â(â before â&â token  
./k.h:31:693: error: stray â#â in program  
./k.h:31:700: error: expected identifier or â(â before â&â token  
./k.h:31:700: error: stray â#â in program  
./k.h:31:707: error: expected identifier or â(â before â&â token  
./k.h:31:707: error: stray â#â in program  
./k.h:31:714: error: expected identifier or â(â before â&â token  
./k.h:31:714: error: stray â#â in program  
./k.h:31:722: error: expected identifier or â(â before â-â token  
./k.h:31:722: error: stray â#â in program  
./k.h:31:766: error: expected identifier or â(â before â&â token  
./k.h:31:766: error: stray â#â in program  
./k.h:31:773: error: expected identifier or â(â before â&â token  
./k.h:31:773: error: stray â#â in program  
./k.h:31:780: error: expected identifier or â(â before â&â token  
./k.h:31:780: error: stray â#â in program  
./k.h:31:787: error: expected identifier or â(â before â&â token  
./k.h:31:787: error: stray â#â in program  
./k.h:31:795: error: expected identifier or â(â before â-â token  
./k.h:31:795: error: stray â#â in program  
./k.h:31:987: error: expected identifier or â(â before â&â token  
./k.h:31:987: error: stray â#â in program  
./k.h:31:995: error: expected identifier or â(â before â&â token  
./k.h:31:995: error: stray â#â in program  
./k.h:31:1004: error: expected identifier or â(â before â-â token  
./k.h:31:1004: error: stray â#â in program  
./k.h:31:1050: error: expected identifier or â(â before â&â token  
./k.h:31:1050: error: stray â#â in program  
./k.h:31:1058: error: expected identifier or â(â before â&â token  
./k.h:31:1058: error: stray â#â in program  
./k.h:31:1067: error: expected identifier or â(â before â-â token  
./k.h:31:1067: error: stray â#â in program  
./k.h:31:1110: error: expected identifier or â(â before â&â token  
./k.h:31:1110: error: stray â#â in program  
./k.h:31:1117: error: expected identifier or â(â before â&â token  
./k.h:31:1117: error: stray â#â in program  
./k.h:31:1124: error: expected identifier or â(â before â&â token  

1 个答案:

答案 0 :(得分:0)

试用版是32位,但您尝试使用“-m64”进行编译。你能尝试-m32还是只删除那个