Daily Archives: July 2, 2005

different compiler under windows

quote from: http://spaces.msn.com/members/zhz44/Blog/cns!1pvDXt8xjGfXmXn9JkAvjI4A!107.entry

测试代码很简单:

 

#include <iostream>

using namespace std;

int main()

{

   cout <<"hello world"<<endl;

   return 0;

}
…两种IDEDEV-C++eclipses,以及命令行,在编译速度上命令行最快,eclipses,这倒在意料之中,但产生的可执行文件确吓了我一跳,就这样一个程序,居然产生了400KB以上的文件,命令行和DEVC++都是461KBelipses465KB。为了检测是否是GCC的问题,我在linux下编译同样的代码,C++产生的文件大小为13.9KB

—————quote end—————-
It’s very interesting!
With the default settings in dev-cpp, compiled by MinGW, the executable is 463kB in size!
Using VC 6, it is 244kB with debug mode, and 64kB with release mode
With vc 7 (vs.net 2003), the two executables are 224kB and 68kB respectively.

关于波兰总统候选人网恋故事的一些事实

新闻见:Click here to link the news

其实通过google很容易就能得到准确的信息。国内的新闻报道总是耸人听闻。
首先,应该承认,是有这件事,有个波兰president candidate叫Stanislaw Tymiń
ski,并在04年娶了一个中国姑娘,比他年轻20岁。但事实没有象新闻讲的romantic。
  1. Mulan是中国人(是否河南不得而知),以前是老师(老师就是师范毕业?who
know),也许到过深圳打工,也不得而知。通过Internet认识Tymiński。但讲女方不
懂英语真是乱讲,据Tymiński自己写的,两人一天花很多时间在网上,talking in
English,持续了几个月。后来他让香港的熟人到中国来认识了一下这位女子,感觉很
不错,而且漂亮。因为Tymiński是加拿大的商人,所以在加拿大成的亲。
  2. Tymiński此前结过两次婚,有3个孩子(而不是4个!),而且岁数大,在国内
不好找对象。所以在一家婚姻登记网站注册了他自己,估计有上百万的可供选择的对
象,其中来自中国的有350,000人登记(不大敢确定,请懂Polish的朋友自己到最后给
出的网址查验,如果真是如此,就太可怕了),在其中挑了以后成为妻子的Mulan。
  3. Tymiński讲,他通过Internet Camera看着Mulan,感觉她年轻漂亮,对他很有
吸引力。
  
  0. 04年的事情,不知道为什么到现在新闻(旧闻?)才出来,就一个男人娶了一
个女的,一个女子通过征婚网站打到了自己的婚姻而已,有什么大惊小怪。为什么动不
动就整到国家面子层次上去了,搞不懂。只是估计以后会有更多的中国女子上网找老公
了吧?这个中国就更有面子了,呵呵!
  
  
  本文翻译自Stan Tymiński自己的网站,http://stantyminski.pl/
  请懂Polish的朋友自己上去看,以正视听

compiling Qt 4 with msvc.net (obselete)

see this item for latest method

1. unpack qt-win-opensource-4.0.0.zip to c:qt4.0.0
2. open cmd, then locate to c:qt4.0.0

c:
cd qt4.0.0

3. unpack qt4msvc_bcc.zip to the Qt 4.0.0 directory
4. configure Qt 4 with MinGW. This step is necessary, otherwise it will prompt missing of files when do nmake.

configure -platform win32-g++

5. go to the qmake directory, then use Makefile.win32-msvc to recompile qmake.

cd qmake
nmake -f Makefile.win32-msvc
I
am also wondering if there is a makefile for win32-msvc.net.
Unfortunately, there is not such a file due to absence of qmake
generator file specific to msvc.net. However, we can regard qmake using
win32-msvc option is compatible with msvc.net environment, considering
the successful final nmake link result.

6. go back the root directory of Qt 4. Using qmake with recursive
option to produce makefiles in current directory and all its
subdirectories.

cd ..
qmake -recursive -spec win32-msvc.net

7. nmake Qt4. The process will be longer than you expected. Be patient. 🙂

nmake

编译是变态的慢,要有心理准备哦!我在dell c640/2.0G/512M上花了将近6个小时才编译完成

需要qt4msvc_bcc.zip的请留email给我.
If you need qt4msvc_bcc.zip, please leave me a message, or drop me an
Email. You can also download this file from Kde-cygwin maillist. Thank
Andreas Hausladen for sending this zip file to the public maillist.

p.s. It will be better to use makespec files got from the win
evaluation Qt 4 version. Just override the counterparts in
qt4msv_bcc.zip. I have done as this, and comipled successfully.