Linux配置
大城市小葫芦
小码农
展开
-
vi下编辑时遇到\n\r的问题
在linux下,换行符是\n而在windows下,换行符是\n\r因此,在vi下编辑的内容,在windows下打开时,会自动将换行符转换成\n\r,再回到vi时会出错,比如在编写shell脚本的时候解决方法:设置vi下的fileformatset fileformat=unix原文地址:http://blog.163.com/jw_chen_cs/blog/static/202转载 2016-05-24 21:28:37 · 1790 阅读 · 0 评论 -
Centos安装protobuf
protobuf下载地址:https://github.com/google/protobuf/archive/v2.6.1.zipunzip protobuf-2.6.1.zipcdprotobuf-2.6.1./autogen.sh./configuremake && make install如果在编译的过程中遇到 ‘kEmptyString’ is n原创 2016-04-20 21:46:46 · 2744 阅读 · 0 评论 -
boost中regex使用时出现的问题
在使用到boost库中的regex的so文件中,如果出现如下错误:undefined symbol: _ZN5boost9re_detail14verify_optionsEjNS_15regex_constants12_match_flagsE说明在生成so文件时缺少引用regex的源文件,此时需要在makefile中或者编译时加上regex的库,然后重新编译如果在重新编译时出现原创 2016-05-04 21:31:12 · 2112 阅读 · 0 评论