2013-10-13 48 views
1

我在Linux上使用試用版。我從kx svn複製了所有文件,但是當我運行make文件時,我在k.h中不斷收到錯誤。這是一個kx版本錯誤?集成R和kdb時生成文件錯誤

/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 

回答

0

試用版本是32位,但您嘗試使用「-m64」進行編譯。你可以試試-m32或者只是刪除那個

+0

這是我以爲也是,但事實並非如此。我需要創建c目錄並複製common.c等文件以及http://code.kx.com/wsvn/code/kx/kdb%2B/c/c/?#a13bd25ee24546baceff884a3804f0ecc。 –