随笔分类 -  C/C++

Terminate program hitting CTRl+C within GDB
摘要:Q:My program is determined to stop its execution by hitting CTRL+C in command window. By now, i have a critical error right in this stopping phase, so i want to debug with gdb.Problem is, gdb redefines CTRL+C as its own interrupt and pauses the execution whet hitted. How can i handle it that CTRL+C 阅读全文

posted @ 2014-01-04 14:39 androidme 阅读(365) 评论(0) 推荐(0)

OpenSSL加解密
摘要:http://www.caole.net/diary/des.htmlTable of ContentsOpenSSL - DES Summary DES使用的例子 另一个带注释的例子 另一段Code: OpenSSL - DESSummaryThis library contains a fast implementation of the DES encryption algorithm.There are two phases to the use of DES encryption.The first is the generation of a DESkeyschedule from 阅读全文

posted @ 2013-08-13 12:56 androidme 阅读(620) 评论(0) 推荐(0)

libevent
摘要:http://libevent.org/libevent是一个事件触发的网络库,适用于windows、linux、bsd等多种平台,内部使用select、epoll、kqueue等系统调用管理事件机制。著名分布式缓存软件memcached也是libevent based,而且libevent在使用上可以做到跨平台,而且根据libevent官方网站上公布的数据统计,似乎也有着非凡的性能。 阅读全文

posted @ 2013-07-15 13:14 androidme 阅读(238) 评论(0) 推荐(0)

GTest 运行参数
摘要:http://www.cnblogs.com/coderzh/archive/2009/04/10/1432789.html 阅读全文

posted @ 2013-06-27 10:53 androidme 阅读(333) 评论(0) 推荐(0)

OSGi for C/C++
摘要:http://blog.cppmicroservices.org/2012/03/29/osgi-and-c++/http://stackoverflow.com/questions/9249708/is-there-a-non-java-alternative-to-osgihttp://blog.csdn.net/chgaowei/article/details/4545211 阅读全文

posted @ 2013-05-21 13:02 androidme 阅读(352) 评论(0) 推荐(0)

How to create a hex dump from binary data in C++
摘要:http://stahlworks.com/dev/index.php?tool=csc01How to create a hex dump from binary data in C++ with a few lines of code: free source code examples for instant use in any project, for windows and linux.starting point: let's say we have a simple program like this:#include <stdio.h>int main(i 阅读全文

posted @ 2013-04-15 18:36 androidme 阅读(493) 评论(0) 推荐(0)

C++命令行解析库
摘要:TCLAPhttp://tclap.sourceforge.net/CLAPhttp://www.cs.bgu.ac.il/~cgproj/CLAP/CLPPhttp://clp-parser.sourceforge.net/Arg_parserhttp://www.nongnu.org/arg-parser/arg_parser.htmlgflagshttps://code.google.com/p/gflags/popthttp://gnuwin32.sourceforge.net/packages/popt.htm 阅读全文

posted @ 2013-04-05 20:46 androidme 阅读(517) 评论(0) 推荐(0)

sqlite3x library
摘要:sqlite3x - C++ wrapper of SQLite API.http://sourceforge.net/projects/int64/files/SQLite3%20C%2B%2B%20Wrapper/https://github.com/ptrv/sqlite3xhttp://wanderinghorse.net/computing/sqlite/Appendixhttp://www.sqlite.org/ 阅读全文

posted @ 2013-04-01 14:20 androidme 阅读(327) 评论(0) 推荐(0)

Seial port API and tool
摘要:LibrarySerial Programming Guide for POSIX Operating Systemshttp://digilander.libero.it/robang/rubrica/serial.htmhttp://www.teuniz.net/RS-232/https://iftools.com/download/index.en.phphttp://serialib.free.fr/html/index.htmlhttp://www.ibm.com/developerworks/cn/linux/l-serials/https://github.com/cymait/ 阅读全文

posted @ 2013-03-22 13:10 androidme 阅读(881) 评论(0) 推荐(1)

VC与Cygwin的结合
摘要:1:生成cygwin1.libimpdef cygwin1.def cygwin1.dlllib /DEF:cygwin1.def /OUT:cygwin1.lib2:生成my-crt0.libgcc -shared my-crt0.c -o my-crt0.dllimpdef my-crt0.def my-crt0.dlllib /DEF:my-crt0.def /OUT:my-crt0.lib3: 把crt0.c包含中工程中my_crt0.c#include <sys/cygwin.h>#include <stdlib.h>typedef int (*MainFun 阅读全文

posted @ 2013-03-16 13:24 androidme 阅读(1026) 评论(0) 推荐(0)

详解linux下的串口通讯开发
摘要:串行口是计算机一种常用的接口,具有连接线少,通讯简单,得到广泛的使用。常用的串口是RS-232-C接口(又称EIA RS-232-C)它是在1970年由美国电子工业协会(EIA)联合贝尔系统、调制解调器厂家及计算机终端生产厂家共同制定的用于串行通讯的标准。串口 通讯指的是计算机依次以位(bit)为单位来传送数据,串行通讯使用的范围很广,在嵌入式系统开发过程中串口通讯也经常用到通讯方式之一。Linux对所有设备的访问是通过设备文件来进行的,串口也是这样,为了访问串口,只需打开其设备文件即可操作串口设备。在linux系统下面,每 一个串口设备都有设备文件与其关联,设备文件位于系统的/dev目录下面 阅读全文

posted @ 2013-03-08 16:49 androidme 阅读(467) 评论(0) 推荐(0)

Simple HTTPD
摘要:http://sourceforge.net/projects/shttpd/http://code.google.com/p/mongoose/SHTTPD is small, fast and easy to use web server. It supports CGI, SSL,Digest Authorization. The unique feature of SHTTPD is the ability toembed it into existing C/C++ applications. Embedded API is very clean and simple. SHTTPD 阅读全文

posted @ 2013-02-19 21:30 androidme 阅读(292) 评论(0) 推荐(0)

iniparser
摘要:https://github.com/andrearanalli/iniparser/This modules offers parsing of ini files from the C level. 阅读全文

posted @ 2013-02-19 21:02 androidme 阅读(169) 评论(0) 推荐(0)

linux命令之ar—创建静态库.a文件
摘要:http://blog.csdn.net/chenglinhust/article/details/7667557用途说明:创建静态库.a文件。常用参数:格式:ar rcs libxxx.a xx1.o xx2.o参数r:在库中插入模块(替换)。当插入的模块名已经在库中存在,则替换同名的模块。如果若干模块中有一个模块在库中不存在,ar显示一个错误消息,并不替换其他同名模块。默认的情况下,新的成员增加在库的结尾处,可以使用其他任选项来改变增加的位置。【1】参数c:创建一个库。不管库是否存在,都将创建。参数s:创建目标文件索引,这在创建较大的库时能加快时间。(补充:如果不需要创建索引,可改成大写S 阅读全文

posted @ 2013-02-19 15:56 androidme 阅读(7638) 评论(0) 推荐(0)

zlib
摘要:http://zlib.net/ 阅读全文

posted @ 2013-02-18 23:26 androidme 阅读(210) 评论(0) 推荐(0)

libupnp
摘要:http://pupnp.sourceforge.net/http://upnp.sourceforge.net/As of 2005-2006, the original developers did not have the time to work on libupnp any more and nobody expressed interest in taking over development of the main project. As a result, Michael Pfeiffer forked a new project, pupnp, where he has pl 阅读全文

posted @ 2013-02-11 21:03 androidme 阅读(425) 评论(0) 推荐(0)

log4cpp
摘要:http://log4cpp.sourceforge.net/ 阅读全文

posted @ 2013-02-11 20:59 androidme 阅读(192) 评论(0) 推荐(0)

C++前置声明
摘要:http://blog.csdn.net/fjb2080/article/details/5533514http://blog.csdn.net/rogeryi/article/details/1439597http://blog.csdn.net/whucv/article/details/7879387http://blog.csdn.net/yunyun1886358/article/details/5672574 阅读全文

posted @ 2013-02-07 18:29 androidme 阅读(140) 评论(0) 推荐(0)

C++中模板不能把实现和声明放在两个不同的文件下
摘要:http://zhidao.baidu.com/question/322405048.htmlhttp://www.zhihu.com/question/20630104http://bbs.chinaunix.net/thread-923716-1-1.html在Fraction.h中,我是这么定义的#pragma once#ifndef FRACTION#define FRACTIONtemplate<class T>class Fraction{public: Fraction(void); Fraction(T ,T); ~Fraction(void);private: T 阅读全文

posted @ 2013-02-06 09:46 androidme 阅读(1071) 评论(0) 推荐(0)

stdext - A C++ STL Extensions Libary
摘要:https://code.google.com/p/stdext/ 阅读全文

posted @ 2013-02-05 17:42 androidme 阅读(161) 评论(0) 推荐(0)

导航