本页主题: [求助]想学C++,请问用什么编译器好? 打印 | 加为IE收藏 | 复制链接 | 收藏主题 | 上一主题 | 下一主题

showmeZ
级别: 圣骑士


精华: 2
发帖: 200
威望: 72 点
金钱: 517 静电币
支持度: 0 点
在线时间:1(小时)
注册时间:2003-06-05
最后登录:2007-08-01

 [求助]想学C++,请问用什么编译器好?

不喜欢用VC++,那个对于一般的C++程序好像很难调试。
不知除此以外,还有什么编译器适合于初学者?
请各位赐教谢谢!
Posted: 2004-09-16 21:54 | [楼 主]
Eve_okay
级别: 论坛版主


精华: 2
发帖: 1278
威望: 478 点
金钱: 290 静电币
支持度: 11884 点
在线时间:133(小时)
注册时间:2004-03-06
最后登录:2018-10-12

 

不怕大的话,建议用.net。
Posted: 2004-09-17 00:48 | 1 楼
galilette
级别: 嘉宾


精华: 30
发帖: 2139
威望: 1382 点
金钱: 0 静电币
支持度: 0 点
在线时间:3012(小时)
注册时间:2002-05-01
最后登录:2019-03-12

 

Quote:
下面是引用showmeZ于2004-09-16 9:54 PM发表的 [求助]想学C++,请问用什么编译器好?:
不喜欢用VC++,那个对于一般的C++程序好像很难调试。
不知除此以外,还有什么编译器适合于初学者?
请各位赐教谢谢!

我想你应该搞清楚编译器和IDE的区别

free的编译器,我想g++现在是最好的

不过微软新的c++编译器具有商业软件的质量(微软的visual studio的组件),但可以免费使用: http://msdn.microsoft.com/visualc/vctoolkit2003/
Posted: 2004-09-17 13:20 | 2 楼
风の铃音
年度杀人狂 2006
杀人游戏MVP勋章I
级别: 嘉宾


精华: 99
发帖: 3561
威望: 2500 点
金钱: 232 静电币
支持度: 23475 点
在线时间:842(小时)
注册时间:2002-11-17
最后登录:2012-05-22

 

免费的还是 cygwin 较好,推荐使用

http://sources.redhat.com/cygwin/
月影映上苍白的面庞,眼中便有了光亮
夜风吹散淡然的花香,思绪便恣意飞扬
回忆剥去破碎的点滴,难忘的,仍是那风中铃音的忧伤……
Posted: 2004-09-17 17:11 | 3 楼
galilette
级别: 嘉宾


精华: 30
发帖: 2139
威望: 1382 点
金钱: 0 静电币
支持度: 0 点
在线时间:3012(小时)
注册时间:2002-05-01
最后登录:2019-03-12

 

正好,今天看到一篇linux下g++和Intel c++ compiler的评测文章(in english)。g++是GCC(Gnu Compiler Collection)中的c++ compiler,自然是gpl的free, intel cpp compiler在linux下有non-commercial license, 就是说,如果你的工作不以盈利为目的,它是免费的。自然,gcc的portability 更好,不过如果只是x86构架, intel的compiler也是一个不错的选择

原文:
http://www.coyotegulch.com/reviews/linux_compilers/

原文的结论部分:
Quote:

Conclusions


So which compiler is better?

Like Einstein, I have to say the answer is relative. If you use systems based on the Pentium 4 architecture, Intel C++ is an excellent choice. If you need OpenMP, Intel is your only choice given GCC's lack of this feature. But, as I said before, Intel's compiler is not a drop-in replacement for GCC.

Compiling code is a complicated business, and it isn't humanly possible to write a perfect compiler that digests everything programmers throw at it. I do have some reports of code that compiles incorrectly with Intel C++; on the other hand, I have such reports and experiences with every compiler I've ever used, including GCC. While people complain that corporations are slow to fix bugs, the "pay up or do it yourself" attitude of many GCC developers can be equally frustrating. And not everyone is comfortable digging through bug databases looking for patches.

If anything, these tests show how free software rivals -- and sometimes exceeds -- the quality of its commercial counterparts. Perhaps GCC's greatest strength is its cross-platform portability; it is arguably the most ubiquitous piece of software in the world, running on everything from mainframes to embedded systems. For obvious reasons, Intel's compiler is specific and limited to their processors.

As for the religious war over free and proprietary software: I've written a few million lines of code over the decades, and only under GNU/Linux have I had source code for my compiler. Perusing the GCC source can be very educational -- but in the end, many developers don't have the time to do compiler hacking when they're trying to write code for customers. So long as GCC exists and is free, I don't see any problem with companies like Intel (and Borland) producing closed-source tools we can use to develop free projects.

Your mileage and religious fervor on this issue may, of course, vary. I'm just glad we have a choice when it comes to development tools.

"Choice" is the key word here -- choice is good, be it in democracy or software. Intel provides a useful alternative to GCC for development on ia32 systems. One compiler might have a great environment for developing GUI code; another compiler might generate fast code. GPL-like freedom may be important -- or not -- as individual circumstances dictate.

As always, I look forward to considered comments.



p.s., lain说的cygwin,是windows环境下的一个linux模拟层以及运行在这个模拟层上的linux core utilities,其中就有g++
[ 此贴被galilette在2004-09-19 11:57重新编辑 ]
Posted: 2004-09-19 11:45 | 4 楼
江户川柯南
NP博士
级别: 嘉宾


精华: 0
发帖: 501
威望: 255 点
金钱: 3075 静电币
支持度: 0 点
在线时间:43(小时)
注册时间:2001-11-21
最后登录:2023-01-30

 

Dev C++
弓虽
Posted: 2004-09-19 23:06 | 5 楼
showmeZ
级别: 圣骑士


精华: 2
发帖: 200
威望: 72 点
金钱: 517 静电币
支持度: 0 点
在线时间:1(小时)
注册时间:2003-06-05
最后登录:2007-08-01

 

谢谢各位的指教,努力学习中
Posted: 2004-09-20 23:24 | 6 楼
帖子浏览记录 版块浏览记录
狗狗静电BBS - wwW.DoGGiEhoMe.CoM » 电脑全方位 Computer Guide

沪ICP备05008186号
Powered by PHPWind Styled by MagiColor