摘要:
在使用Qt 4.7.3, Qt 4.7.2 ,Qt 4.7.1(mingw 4.6.2 )的时候都会有一个问题无法编译通过,即用Qt Creator 编译的时候会发生一个错误 "Cannot find entry symbol nable-stdcll-fixup; defaulting to 00401000"错误发生的位置是:Makefile.Debug , Makefile.Release 错误分析:请打开Makefile.Debug,定位到 LFLAGS = 原始定义如下: -enable-stdcall-fixup -Wl,-enable-auto-import 阅读全文
摘要:
//如果界面上的中文依然显示乱码,那么请将main.cpp文件中的:QTextCodec::setCodecForTr(QTextCodec::codecForLocale());//更改为:QTextCodec::setCodecForTr(QTextCodec::codecForName(“GB2312″));QString(trUtf8("↑"));QString(trUtf8("中国")); 阅读全文
摘要:
C++, map , iterator ,pair(), make_pair() 阅读全文
摘要:
编译出现这个错误的原因非常简单编译的标准不相同。如果用stdc90,这个就可以直接编译通过了。下面是代码例子:......char cmd[256] = NULL;或者 :char cmd[256] = '\0';...............如果用C写这个代码,编译是没有问题的。但是用C++写的,就会出现问题了。编译会提示:In member function '.....::.....' :..........: error: array must be initialized with a brace-enclosed initialized 解决方案有如 阅读全文
摘要:
转载,UBIFS, Android, 阅读全文
摘要:
C++编程规范 阅读全文
摘要:
下面提供的commit是为了让nexus 4g的内核支持ubunt touch的一些功能.链接地址如下:"UBUNTU: SAUCE: apparmor: 3.0 backport of apparmor3"http://o.cs.uvic.ca:20810/perl/cid.pl?cid=1106ae9516230849ecdb5dd56ac78a0c4b511697 阅读全文
摘要:
sample://part A//tmp.hpp#ifndef TEMP_HPP#define TEMP_HPPclass tmp { public: void print(); private: std::string str2;};#endif// part B//tmp.cpp#include #include "tmp.hpp"#include "test.hpp"using namespace std;void tmp::print() { str2 = " this is the tmp print ... 阅读全文