发布时间:2013-04-01 16:31:22
系统环境 centos6.3 , 编译环境gcc 4.4.6将系统从32位centos迁移到64位持续集成平台上时,编译报错:gnu/stubs-32.h: No such file or directorygoogle了下原来是32位glibc库没装:yum install glibc-devel.i686 -y安装完成之后又有问题了:/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linu.........【阅读全文】
发布时间:2013-02-27 17:24:02
What is a lambda function?The C++ concept of a lambda function originates in the lambda calculus and functional programming. A lambda is an unnamed function that is useful (in actual programming, not theory) for short snippets of code that are impossible to reuse and are not worth naming.I.........【阅读全文】
发布时间:2013-01-23 11:52:42
现象:在linux中使用fopen第2个参数为"r"或"w"打开二进制文件后读写没有任何问题,但将代码移到windows后,读写却出现了异常。将参数改成"rb"和"wb"后,读写正常。原因如下(转载):在学习C语言文件操作后,我们都会知道打开文件的函数是fopen,也知道它的第二个参数是标志字符串。其中,如果字符串中出.........【阅读全文】