图:机器人科学家 “夏娃”Date:February 3, 2015Source:University of CambridgeSummary:Eve, an artificially intelligent 'robot scientist' could make drug discovery f...
分类:
其他好文 时间:
2015-02-11 00:28:04
阅读次数:
274
// testc.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include #include using boost::asio::ip::tcp...
分类:
Web程序 时间:
2015-02-10 21:31:25
阅读次数:
221
安装配置Thrift
Thrift的编译器使用C++编写的,在安装编译器之前,首先应该保证操作系统基本环境支持C++的编译,安装相关依赖的软件包,如下所示
sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby...
分类:
系统相关 时间:
2015-02-09 23:05:58
阅读次数:
226
Boost Asio 网络编程 基本用法
flyfish 2015-2-9
IP地址
boost::asio::ip::address表示IP地址,同时支持ipv4和ipv6。
boost::asio::ip::address addr;
addr = addr.from_string("127.0.0.1");
assert(addr.is_v4()); ...
分类:
其他好文 时间:
2015-02-09 18:24:01
阅读次数:
351
最近一直在Window下编译64位的boost,找到这篇博文,好好学习一下: 一直以来都是在Win32环境下Build和使用boost,但现在基本上每天都在64位Win7下工作,所以很有必要把这几天的经验总结下来。和32位环境不同,x64环境下编译得先从开始菜单启动Visual Studio的Vis...
分类:
其他好文 时间:
2015-02-09 12:34:05
阅读次数:
100
1.用VC命令行在boost目录下执行bootstrap.bat会在boost目录下生成bjam.exe2.编译boost 编译32位static lib: bjam stage --toolset=msvc-12.0 --stagedir="D:\third_party\boost_1_5...
分类:
其他好文 时间:
2015-02-06 20:13:17
阅读次数:
161
//
// fox_timer.hpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2014-2015 yoen.xu (181471112 at qq dot com)
//
//说明
//eg: fox_timer::run(io_, func, interval);
// T 为func的返回类型,当T为int的时候(范围值-1...
分类:
其他好文 时间:
2015-02-06 09:30:47
阅读次数:
232
cmake之前需要首先设置环境变量:export BOOST_LIBRARYDIR=$BOOST_ROOT/lib64export BOOST_ROOT=/home/noah/boost_1_57_0然后cmake .make make install应该能用
分类:
其他好文 时间:
2015-02-05 21:44:49
阅读次数:
567
首先下载(废话)解压,./bootstrap.sh之后在运行b2./b2 -j8 --prefix=$PWD --libdir=$PWD/lib64 --layout=system link=static install || echo FAILURE这个命令将lib装在本地的而不是用户系统的LIB...
分类:
其他好文 时间:
2015-02-05 20:23:52
阅读次数:
363
Python中使用C/C++模块有许多工具,大名鼎鼎的有SWIG(英文意思为:豪饮)、SIP(英文意思为:啜饮,小口的喝),还有 boost.python等。其中SIP是从SWIG发展而来,专为Python调用C/C++模块使用的(看SIP...
分类:
编程语言 时间:
2015-02-05 18:52:34
阅读次数:
337