scons安装和使用

scons安装和使用

1. scons是神马?scons是linux下的自动构建工具,类似cmake。2. 安装wget .tar zxvf scons-2.2.0.tar.gzcd scons-2.2.0python setup.py install正常情况下,scons将安装到${PYTHON_INSTALL_DIR}/bin/下3. hello world程序三个文件hello.h hello.c main.c hello.h定义函数void hello(); hello.c中实现该函数,,main.c中调用该函数。编写SConstruct,scons构建时使用。内容如下:Program(‘hello’, [‘hello.c’, ‘main.c’])开始构建 scons: Reading SConscript files …scons: done reading SConscript files.scons: Building targets …gcc -o hello.o -c hello.cgcc -o main.o -c main.cgcc -o hello hello.o main.oscons: done building targets.此时二进制文件已经构建完成,scons贼好用。4. 参考资料更多配置:相关代码下载:

免费下载地址在

用户名与密码都是

具体下载目录在 /2013年资料/2月/16日/scons安装和使用

为你的快乐而快乐的是朋友,为你的难过而难过的才是你的知己。

scons安装和使用

相关文章:

你感兴趣的文章:

标签云: