求助用CODEBLOCK编译无错误提示。就是不能建立。。无法运行。出现下面的提示
obj\Debug\clean_old.o:clean_old.c:(.data+0x0): multiple definition of `BOX'obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
obj\Debug\down.o:down.c:(.data+0x0): multiple definition of `BOX'
obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
obj\Debug\head.o:head.c:(.data+0x0): multiple definition of `BOX'
obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
obj\Debug\left.o:left.c:(.data+0x0): multiple definition of `BOX'
obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
obj\Debug\main.o:main.c:(.data+0x0): multiple definition of `BOX'
obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
obj\Debug\mingling.o:mingling.c:(.data+0x0): multiple definition of `BOX'
obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
obj\Debug\panduanyidong.o:panduanyidong.c:(.data+0x0): multiple definition of `BOX'
obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
obj\Debug\putNew.o:putNew.c:(.data+0x0): multiple definition of `BOX'
obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
obj\Debug\right.o:right.c:(.data+0x0): multiple definition of `BOX'
obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
obj\Debug\suijituxing.o:suijituxing.c:(.data+0x0): multiple definition of `BOX'
obj\Debug\changkuan.o:changkuan.c:(.data+0x0): first defined here
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
这个BOX是我的一个三维数组。我这样定义的int BOX[7][4][4]={
{{1,1,1,1},{0,0,0,0},{0,0,0,0},{0,0,0,0}},
{{1,1,1,0},{1,0,0,0},{0,0,0,0},{0,0,0,0}},
{{1,1,1,0},{0,0,1,0},{0,0,0,0},{0,0,0,0}},
{{1,1,1,0},{0,1,0,0},{0,0,0,0},{0,0,0,0}},
{{1,1,0,0},{0,1,1,0},{0,0,0,0},{0,0,0,0}},
{{0,1,1,0},{1,1,0,0},{0,0,0,0},{0,0,0,0}},
{{1,1,0,0},{1,1,0,0},{0,0,0,0},{0,0,0,0}}
};