Sailor++

导航

 

2013年8月22日

摘要: You must specify the compiler argument -std=c++0x to avoid the following error: test.cpp:5:13: error: default template arguments may not be used in function templates without -std=c++0x or -std=gnu++0x 阅读全文
posted @ 2013-08-22 16:24 SailorNet 阅读(250) 评论(0) 推荐(0) 编辑
 
摘要: 1.下载luabind地址http://sourceforge.jp/projects/sfnet_luabind/luabind.0.9.tar.gz解压到luabindeclipse新建LuaBind工程,属性静态库将所有的src目录和luabind目录全部复制进来。添加包含路径包括lua安装路径,lua目录下的include,luabind目录,boost目录;还要加上boost的lib目录2.安装lua开发包yum install lua_devel3.编译成libLuaBind.a4.C++调用luaC++项目要包换lua 和LuaBind这两个库--------test.lua-- 阅读全文
posted @ 2013-08-22 10:50 SailorNet 阅读(882) 评论(0) 推荐(0) 编辑
 
摘要: 安装依赖#yum install python-devel官网下载最新boost 安装包www.boost.org下载,解压,按照如下步骤:#tar xvzf boost_1_50_0.tar.gz进入boost_1_50_0目录:#cd boost_1_50_0然后是编译安装,boost源码包中有配置脚本,直接用就可以:#sh ./bootstrap.shBuilding Boost.Build engine with toolset gcc... tools/build/v2/engine/bin.linuxx86_64/b2DetectingPython version...2.6Det 阅读全文
posted @ 2013-08-22 10:30 SailorNet 阅读(318) 评论(0) 推荐(0) 编辑