1 需要保证luarocks调用的是~/torch/install/bin/下的luarocks,且用sudo执行。
2添加-I(i不可以) 参数表示链接外部的头文件
gcc -g -o libstarcraft.so -fpic -shared starcraft.c -I /home/ww/torch/install/include/TH
1 需要保证luarocks调用的是~/torch/install/bin/下的luarocks,且用sudo执行。
2添加-I(i不可以) 参数表示链接外部的头文件
gcc -g -o libstarcraft.so -fpic -shared starcraft.c -I /home/ww/torch/install/include/TH