摘要: 测试: 阅读全文
posted @ 2016-12-17 16:11 啊饭 阅读(3683) 评论(0) 推荐(0) 编辑
摘要: 这篇文章演示了Makefile使用mysqlpp库和lua库的写法。 test.cpp: test.lua: Makefile: 阅读全文
posted @ 2016-12-16 15:33 啊饭 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 这篇文章演示多目录,c,c++混编的Makefile写法。 文件夹: $dir/bin/ $dir/deps/ deps/inc/ deps/lib/ deps/src/ $dir/obj/ $dir/project/ project/test.mk $dir/src/ src/class1.cpp 阅读全文
posted @ 2016-12-16 15:27 啊饭 阅读(228) 评论(0) 推荐(0) 编辑
摘要: funs.h: funs.c Makefile main.c 编译: gcc -o main.exe -lfuns -L/home/xt/test_lib main.c 阅读全文
posted @ 2016-12-16 14:57 啊饭 阅读(896) 评论(0) 推荐(0) 编辑
摘要: classA.lua: classA = { a = 0, b = 0,}; classA.meta = {__index = classA} function classA:new(a, b) local o = {}; setmetatable(o, self.meta); o.a = a; o 阅读全文
posted @ 2016-12-15 15:39 啊饭 阅读(6740) 评论(0) 推荐(1) 编辑
摘要: test.h: test.cpp: main.cpp: test.lua: 阅读全文
posted @ 2016-12-14 16:04 啊饭 阅读(2766) 评论(0) 推荐(0) 编辑
摘要: windows: 直接去https://github.com/mythz/redis-windows下载,解压缩后,直接运行redis-server.exe就可以了。linux: 阅读全文
posted @ 2014-10-13 15:12 啊饭 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 测试1: 运行结果为 in start 0 callYieldFunction 0 callYieldFunction1 0 in start 2 0 callYieldFunction print after 4 seconds 2.004971 callYieldFunction print a 阅读全文
posted @ 2014-07-02 18:05 啊饭 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 今天用vs编一个用asio写的程序,发现在tcp::acceptor::open()失败,查了好久,发现是acceptor绑定的io_service没有正确的初始化,又查了半天,发现是需要加一个预编译常量:BOOST_ASIO_HAS_IOCP。一般情况VS编asio写的程序不需要加别的预编译常... 阅读全文
posted @ 2014-06-25 11:26 啊饭 阅读(420) 评论(0) 推荐(0) 编辑
摘要: windows: 按http://jingyan.baidu.com/article/fcb5aff797ec41edaa4a71c4.html的安装 按http://www.jb51.net/article/22895.htm所说的安装apache,php,mysql 设置httpd.conf: 阅读全文
posted @ 2014-06-19 21:24 啊饭 阅读(252) 评论(0) 推荐(0) 编辑