终于不用 VC 了
最近一年半做的主要项目是跨平台的。但是只是说说,还没真的去试着在别的平台上 run 起来。因为我们做的是二进制复用,目标模块文件是自定义格式,所以也不太在乎编译器。原计划是在 Windows 下开发,用 VC 编译的。
最近几天真正开始做跨平台了,想来想去,还是改用 gcc 的好 。废弃 VC 倒不是因为它不好,而是想买一台 Mac mini 放在家里用用 :D 一直家里都没买电脑,我也不用笔记本,回家就是打游戏和睡觉。到时候有了机器,在 Mac OS 上自然是没有 VC 用了。
所以,我的跨平台目标就定在了 win32 、freebsd 、linux 和 macosx 。当然,目前我的测试环境只有 win32 和 freebsd ,这几天就在把这两个搞定。
原来的 build 工具是用的 bjam ,这个是 05 年之初选定的。前段时间反省了一下,又考察了最近两年新出的一些 build 工具后,最后还是决定改回 gmake 。到了今天,我在 windows 下的开发环境就成了 gcc(mingw) + gmake + insight 。
今天主要是试了下 insight ,这个 gdb 的图形外壳还是很好用的。唯一美中不足的是:我在注册表 HKEYLOCALMACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug 中把它定为默认调试器后,似乎总不太对劲。 gdb 在 attach 到被调试进程上时老是不正确。反正不能正常工作,也定位不了 source code 。但如果直接用 insight 启动程序则可以顺利调试。
前两天则一直在折腾 gmake ,也是件很痛苦的事情。被折磨了几天后,我放弃了一开始就写出一个通用的 Makefile 模板,打算随着项目进展一点点改进。
gcc 倒是这半年一直在 freebsd 下用,只是用的不够深入。今天想把原来用 vc 编译的东西移植到 mingw 时,就好好研究了一下 gcc 的各种选项。对比 VC 的选项,gcc 要丰富和严谨的多。以前 vc 的命令行用的挺熟,一下子换到 gcc 还是有一点点不适应。
最后,留个自己的一个大工程:打算把项目已有的 C++ 代码全部拿 C 改写一遍。没办法啊,我又爱上 C 了 :D 谁叫我精力旺盛呢。
Comments
Posted by: 福利工口姬 | (47) April 16, 2014 04:38 PM
Posted by: 米奇 | (46) April 22, 2012 09:11 PM
Posted by: arcnode | (45) April 29, 2009 11:59 PM
Posted by: serenade | (44) February 23, 2009 04:33 PM
Posted by: Cloud | (43) March 30, 2008 05:08 PM
Posted by: perlma | (42) March 30, 2008 04:51 PM
Posted by: Atry | (41) September 11, 2007 07:11 PM
Posted by: Atry | (40) June 28, 2007 01:14 AM
Posted by: Rhythm | (39) June 4, 2007 10:06 AM
Posted by: Cloud | (38) June 3, 2007 12:39 PM
Posted by: Rhythm | (37) June 3, 2007 12:18 PM
Posted by: func | (36) May 3, 2007 05:23 PM
Posted by: cofyc | (35) May 3, 2007 10:25 AM
Posted by: missdeer | (34) May 3, 2007 01:38 AM
Posted by: Cloud | (33) May 2, 2007 10:17 PM
Posted by: phoolimin | (32) May 2, 2007 09:26 PM
Posted by: phoolimin | (31) May 2, 2007 09:17 PM
Posted by: missdeer | (30) May 1, 2007 10:54 PM
Posted by: Atry | (29) May 1, 2007 12:51 PM
Posted by: missdeer | (28) May 1, 2007 11:42 AM
Posted by: Atry | (27) April 30, 2007 11:50 PM
Posted by: liang | (26) April 30, 2007 08:28 PM
Posted by: liang | (25) April 30, 2007 08:27 PM
Posted by: Alex | (24) April 30, 2007 04:47 PM
Posted by: Boost的支持者 | (23) April 29, 2007 10:23 AM
Posted by: Boost的支持者 | (22) April 29, 2007 10:20 AM
Posted by: Ricepig | (21) April 29, 2007 04:38 AM
Posted by: Ricepig | (20) April 29, 2007 04:36 AM
Posted by: waynezhang | (19) April 29, 2007 03:03 AM
Posted by: Boost的支持者 | (18) April 29, 2007 01:02 AM
Posted by: Boost的支持者 | (17) April 29, 2007 12:58 AM
Posted by: Boost的支持者 | (16) April 29, 2007 12:39 AM
Posted by: Cloud | (15) April 28, 2007 08:17 PM
Posted by: 极光炫影 | (14) April 28, 2007 07:46 PM
Posted by: Alex | (13) April 28, 2007 07:30 PM
Posted by: Alex | (12) April 28, 2007 07:29 PM
Posted by: Alex | (11) April 28, 2007 07:27 PM
Posted by: Alex | (10) April 28, 2007 06:57 PM
Posted by: Alex | (9) April 28, 2007 06:54 PM
Posted by: Shawn the ROck | (8) April 28, 2007 04:30 PM
Posted by: zelor | (7) April 28, 2007 04:21 PM
Posted by: yayv | (6) April 28, 2007 01:12 PM
Posted by: Cloud | (5) April 28, 2007 12:11 PM
Posted by: 不空 | (4) April 28, 2007 10:54 AM
Posted by: func | (3) April 28, 2007 08:54 AM
Posted by: hanfei | (2) April 28, 2007 01:09 AM
Posted by: hanfei | (1) April 28, 2007 01:07 AM