对于Fork的Repository 最佳的合并策略
Submitted by hubdog on Mon, 2012-07-30 11:15git pull --rebase upstream master
解决冲突后
git rebase --continue
让MacPort创建I386的library
Submitted by hubdog on Mon, 2012-07-16 22:04
The solution is to tell Macports to build universal binaries. This can be done by adding +universal
to the command line, for example:
sudo port install jpeg +universal
A more general solution is to add this “variant” to the Macports config. Simply add +universal
to the file /opt/local/etc/macports/variants.conf
. The file is read-only, even for root, so make sure to force-write the file (:wq! in vi).
And if you want to rebuild everything universal, sledgehammer approach:
C++ Builder 2040 Declaration terminated incorrectly错误的解决办法
Submitted by hubdog on Thu, 2012-07-12 23:46将出错的地方添加 {$EXTERNALSYM xxx}指令,让头文件不生成相应的定义
const
{$EXTERNALSYM EDEADLOCK}
EDEADLOCK = 36 ;
Delphi 组件在C++Builder中不显示的问题
Submitted by hubdog on Thu, 2012-07-12 22:49在编译Delphi组件时,我们需要设置Delphi Compiler Option的C/C++ Output的C/C++ Output file generation 为Generate all C++Builder files (including package libs)。
C++ Builder Mac OSX的问题
Submitted by hubdog on Thu, 2012-07-12 16:54function avutil_version() :Cardinal;
cdecl; external av__util;
即便上面的代码根本没有被用到,C++ Builder Mac OSX上编译时会报错,报告unresolved external xxx的错误,Windows上就没有这个问题,只好把没用的代码都注释掉
gmail中使用邮件模板
Submitted by hubdog on Sun, 2012-07-08 23:46登录进帐号后,点击settings菜单,然后选择 Lab页,将Canned Responses这个插件设为可用.
objective-c 中定义const int的方法
Submitted by hubdog on Sat, 2012-07-07 23:16enum {
kRadioDownload = 0,
kRadioRecord = 1
};
llvm-gcc-4.2 failed with exit code 1
Submitted by hubdog on Sat, 2012-07-07 17:00有时我们编译iphone app的时候经常会碰到llvm-gcc-4.2 failed with exit code 1这样的没头没脑的错误,
要想知道这个错误产生的原因,我们需要执行log navigator里面那一大长串的命令,要在终端里面才能看到具体的错误原因,通常是要link的某个library不存在.
