ChinaUnix.net
相关文章推荐:

boost 交叉编译 头文件

AIX编译选项xlC -g -w -g -brtl -bhalt:5 -qstaticinline -qrtti -qfullpath -qlinedebug -D__WM_IBM_AIX -DTT_64BIT -DAIX -q64 -I/home/src/boost_1_37_0 "/home/src/billing_cf/boost_1_37_0/boost/asio/basic_socket.hpp", line 181.45: 1540-0269 (S) "boost::asio::ip::tcp" has no default constructor. "/home/src/billing_cf/boost_1_37_0/boost/asio/basic_stream_socket.hpp", line 48.12: 1540-0700 (I) The pr...

by kyle218 - C/C++ - 2009-08-06 23:07:11 阅读(2102) 回复(3)

相关讨论

看完了这篇文章http://www.kingofcoder.com/viewNews.php?type=newsCpp&id=85 之後在我的ubuntu 7.04上编译boost, 有这些问题 1) 找不到boost库的.a文件 2) 头文件好像不整, 那下呀?

by koc2 - C/C++ - 2007-06-29 20:19:47 阅读(1133) 回复(4)

大家好,小弟刚接触boost,遇到了不少的麻烦。 下面是我机器上的boost的安装目录:/home/zet/software/boost_1_39_0 系统是:ubuntu 以下是一个很简单的测试代码: [CODE] #include #include <boost/asio.hpp> #include <boost/date_time/posix_time/posix_time.hpp> int main() { boost::asio::io_service io; boost::asio::deadline_timer t(io,boost::posix_time::seconds(5)); t.wait()...

by solu - C/C++ - 2009-07-20 15:32:09 阅读(3701) 回复(12)

接触boost, 从 boost getting started开始, 可是第一个程序就无法通过编译: #include <boost/regex.hpp> #include #include int main() { std::string line; boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" ); while (std::cin) { std::getline(std::cin, line); boost::smatch matches; if (boost::regex_match(line, matches, pat)) std::cout <...

by netrookie - C/C++ - 2009-10-14 18:04:32 阅读(1402) 回复(1)

我现在在linux下编译一个用了boost/tokenizer.hpp库的源文件 代码如下: #include #include #include <boost/tokenizer.hpp> int main() { std::string str1 = "I-have-a-dog"; std::cout << str1 << std::endl; boost::char_separator sep("-"); boost::tokenizer<boost::char_separator > tokens(str1, sep); for (tokenizer::iterator tok_iter = tokens.begin(); tok_iter...

by kitty9fish - C/C++ - 2009-08-22 16:48:28 阅读(964) 回复(1)

boost asio 发送HTTP协议 下载网页. 还没有读取完.但已经超过了设定的时段. 如何终止返回... 谁给此例子.

by ivscript - C/C++ - 2008-10-19 12:14:13 阅读(1011) 回复(0)

想用boost的正则匹配任意二进制文件中的"http.exe"字符串,但regex_search()的第一个参数是字符串,文件中遇到NULL就结束了,请问有没有别的办法? #include #include #include <boost/regex.hpp> #include #include #include using namespace std; using namespace boost; regex expression("http"); int main(int argc, char* argv[]) { // char *databuff="wo \n...

by wellfroggy - Perl - 2008-10-10 14:36:18 阅读(1131) 回复(1)

请问,我现在已经和客户机连上了,怎样获取它的端口?怎样主动对它发数据。 我已经有的对象 tcp::socket socket_; handler_allocator allocator_;

by lokeio - C/C++ - 2007-12-12 23:29:01 阅读(3912) 回复(4)

使用bjam完成编译后只出现了debug目录 没有多线程版本没有发布版本,如果解决? debug太大了 gcc (GCC) 3.3.4 Linux darkstar 2.4.30 #11 SMP Wed Oct 11 16:14:02 CST 2006 i686 unknown unknown GNU/Linux

by stuff990 - C/C++ - 2007-10-22 14:57:04 阅读(1186) 回复(2)

不清楚这个是不是该在c++版问 如题,正在使用PythonMagick做写图形处理的API,(别问我为什么不用PIL,上头不让用:em20: ) help(PythonMagick)中: | colorSpace(...) | C++ signature: | colorSpace(Magick::Image {lvalue}, MagickLib::ColorspaceType) -> void* 遇到这种MagickLib:: ,不知道传什么参数好,试过很多都不行,好像要自己写点什么,与boost有关? pythonmagick的文档网上少的...

by haterw - Python - 2007-09-27 11:34:20 阅读(2623) 回复(1)

本文转自: http://learn.tsinghua.edu.cn:8080/2005212716/html/boost_python.html boost.Python 是 boost 中的一个组件, 使用它能够大大简化用 C++ 为 Python 写扩展库的步骤,提高开发效率, 虽然目前它对 Python 嵌入 C++ 的支持还不是很多, 但也能提供很大方便。另外, 华宇煜 也编写了一份关于 boost.Python 简明教程 。 1 boost 安装简介 在正式开始使用 boost.Python 之前, 我们必须先编译 boost。 首先到 Boos...

by linxh - Python文档中心 - 2007-01-16 00:09:53 阅读(1874) 回复(0)