473,554 Members | 5,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A good compiler

Can anyone suggest me a good compiler for(c/cpp) for windows?
I tried dev cpp but its debugging facility is very poor.

Jul 22 '07
244 9365
In article <OY************ *************** ***@bt.com>, Malcolm McLean
<re*******@btin ternet.comwrite s
>
"Chris Hills" <ch***@phaedsys .orgwrote in message
news:vv******* *******@phaedsy s.demon.co.uk.. .
>In article <11************ **********@m37g 2000prh.googleg roups.com>,
Ajinkya <ka*********@gm ail.comwrites
>>>Can anyone suggest me a good compiler for(c/cpp) for windows?
I tried dev cpp but its debugging facility is very poor.

It depends what you want to do.

The obvious choice is the free MS Visual C++ 2005 express which is on
free download and is the easiest place to start with windows
development .
Apart from some trivial command-line stuff, I have yet to achieve a
single working real program with that thing.

I have see some very complex graphics program compiled with it. (All
portable C too) I also know some very good compilers written using it.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys. org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jul 23 '07 #11
In article <50************ @gmail.com>, Richard <rg****@gmail.c omwrites
>"Malcolm McLean" <re*******@btin ternet.comwrite s:
>"Chris Hills" <ch***@phaedsys .orgwrote in message
news:vv******* *******@phaedsy s.demon.co.uk.. .
>>In article <11************ **********@m37g 2000prh.googleg roups.com>,
Ajinkya <ka*********@gm ail.comwrites
Can anyone suggest me a good compiler for(c/cpp) for windows?
I tried dev cpp but its debugging facility is very poor.

It depends what you want to do.

The obvious choice is the free MS Visual C++ 2005 express which is
on free download and is the easiest place to start with windows
development .
Apart from some trivial command-line stuff, I have yet to achieve a
single working real program with that thing.

Why? Everyone else seems to manage it just fine. It's not too bad for
free.
IT is free.... that was why I suggested it as a good option. If you
get on well with the free one you can expand out to the pay one later if
needed
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys. org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jul 23 '07 #12
On Sun, 22 Jul 2007 23:15:31 +0000, in comp.lang.c , Richard
Heathfield <rj*@see.sig.in validwrote:
>Malcolm McLean said:
>>
I seem to spend hours putting Chinese hats on identifers and taking
them off again, just to get it to compile a simple window.

Why?
Thats a question you'd have to ask Microsoft. I played with the
"Express" versions a while back (I think I still have the CDs) and
fairly quickly decided it would be more fruitful to build a linux box
and install gcc (or for that matter, more fruitful to wallop myself
over the head with a rubber truncheon ...)
>Every single bloomin' time you create a project, your first job is to
switch off pre-compiled headers. Do that, and stdafx.h should stay out
of your hair.
if only....
>>I don't see how you can work like that for real.

People do, you know - and it isn't as hard as you're trying to make out.
I doubt they use the Express version for real. Given, frinstance that
its forbidden by the licensing conditions... :-)

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Jul 23 '07 #13
Chris Hills skrev:
In article <11************ **********@m37g 2000prh.googleg roups.com>,
Ajinkya <ka*********@gm ail.comwrites
>Can anyone suggest me a good compiler for(c/cpp) for windows?
I tried dev cpp but its debugging facility is very poor.

It depends what you want to do.

The obvious choice is the free MS Visual C++ 2005 express which is on
free download and is the easiest place to start with windows development.
This is so long from obvious as it can get... why not try really free
development tool like eclipse and with CDT you have c/c++ for windows
there is simple installer at http://cdt-windows.sourceforge.net/
>
Jul 24 '07 #14
Malcolm McLean wrote:
I seem to spend hours putting Chinese hats on identifers and taking them
off again, just to get it to compile a simple window. Though I have had
moments of glory, such as when I coaxed it into putting "Hello world"
where I wanted in a window, it still insists on adding stdafx.h to my
portable ANSC C files, complains about string functions, and things like
that.
Not to mention that, along the proprietary "extensions " to the language, it
doesn't even come close to support C99. I don't even understand why so many
people even bother installing that thing.
Rui Maciel
Jul 24 '07 #15
On Jul 24, 4:30 am, Mark McIntyre <markmcint...@s pamcop.netwrote :
On Sun, 22 Jul 2007 23:15:31 +0000, in comp.lang.c , Richard

Heathfield <r...@see.sig.i nvalidwrote:
Malcolm McLean said:
I seem to spend hours putting Chinese hats on identifers and taking
them off again, just to get it to compile a simple window.
Why?

Thats a question you'd have to ask Microsoft. I played with the
"Express" versions a while back (I think I still have the CDs) and
fairly quickly decided it would be more fruitful to build a linux box
and install gcc (or for that matter, more fruitful to wallop myself
over the head with a rubber truncheon ...)
Please don't flame me, but what's wrong with emacs/gcc/gdb as a
development environment? Sure, a bit of work with glue/polish may be
needed.

Regards,
Frodo B

Jul 24 '07 #16
Frodo Baggins wrote:
>
Please don't flame me, but what's wrong with emacs/gcc/gdb as a
development environment? Sure, a bit of work with glue/polish may be
needed.

Regards,
Frodo B
"A bit of work with glue/polish" yeah...

o gcc is one of the slowest compilers I have ever used.
It keeps getting slower at each new version. You can't
stop progress can you?
o emacs will not update a definitions data base (it has none)
and tell you automatically the fields of a structure when
you type "foo->" or "foo.".
o emacs will not go to ANY definition by just a mouse click.
It will go to some definitions if you keep manually the
ctags data base updated. True, you can put it in the makefile.
o emacs will not generate a makefile for you. Neither has any
notion of project management.
o gdb is a pile of shit. It is one of the worst debuggers
(in terms of user interface) I have ever used. More or less
at the level of dbx...
gdb will not show you automatically the modified variables
of the program. In lcc-win32's debugger for instance, you
can see the variables the program is modifying WITHOUT
typing anything. This is very easy to do but gdb is unable
to do that. And emacs+gdb doesn't do it either. You have to
type "print myLongVariable. .." AD NAUSEUM!!!

For people living in a refrigerator and running software at the
level of the 1980 or so, gdb + vi + gcc is OK. I used that environment
when I worked here in France in 1986-1989. And I was so happy
to leave that environment!!!

Unfortunately I have been forced to come back and use it when I
ported the compiler to linux 64 bits. What a nightmare.

jacob
Jul 24 '07 #17
Frodo Baggins <fr*********@gm ail.comwrites:
On Jul 24, 4:30 am, Mark McIntyre <markmcint...@s pamcop.netwrote :
>Thats a question you'd have to ask Microsoft. I played with the
"Express" versions a while back (I think I still have the CDs) and
fairly quickly decided it would be more fruitful to build a linux box
and install gcc (or for that matter, more fruitful to wallop myself
over the head with a rubber truncheon ...)

Please don't flame me, but what's wrong with emacs/gcc/gdb as a
development environment? Sure, a bit of work with glue/polish may be
needed.
I believe that Mark was saying that GCC is better than
Microsoft's "Express" product.
--
Ben Pfaff
http://benpfaff.org
Jul 24 '07 #18
Ajinkya wrote:
Can anyone suggest me a good compiler for(c/cpp) for windows?
I tried dev cpp but its debugging facility is very poor.
Do not use lcc-win32.

It has several drawbacks:

o Free, you can download it and install it in a few minutes. The
whole compiler is just 6MB download can you imagine? You will NOT
be able to take a coffee during the download, and go skiing until
it installs.

o It is a C compiler, so it will not put stdafx stuff automatically,
it will NOT complain when you use standard C functions like fopen,
etc.
o It comes with an IDE with project management, windowed debugger,
resource editor, and all you need for windows programming. (And yes,
all that in that 5MB!).

o You can use precision up to 100 digits automatically. Long double
precision (80 bits floating point), and many other goodies.
1) Statistical library
2) Special functions library
3) Linear algebra library
4) Network functions library

o You will find that most people in comp.lang.c will agree with me:
DO NOT USE LCC-WIN32!!!

:-)
http://www.cs.virginia;edu/~lcc-win32
Jul 24 '07 #19
Frodo Baggins <fr*********@gm ail.comwrites:
On Jul 24, 4:30 am, Mark McIntyre <markmcint...@s pamcop.netwrote :
>On Sun, 22 Jul 2007 23:15:31 +0000, in comp.lang.c , Richard

Heathfield <r...@see.sig.i nvalidwrote:
>Malcolm McLean said:
>I seem to spend hours putting Chinese hats on identifers and taking
them off again, just to get it to compile a simple window.
>Why?

Thats a question you'd have to ask Microsoft. I played with the
"Express" versions a while back (I think I still have the CDs) and
fairly quickly decided it would be more fruitful to build a linux box
and install gcc (or for that matter, more fruitful to wallop myself
over the head with a rubber truncheon ...)

Please don't flame me, but what's wrong with emacs/gcc/gdb as a
development environment? Sure, a bit of work with glue/polish may be
needed.
A lot. Compared to using eclipse or VS, it's a lot of hard work with
none of the "ease" of use without a lot of work. emacs is itself a big
project to take on and a lot of the "C" utilities which plug in are
buggy and unfinished.

I use cscope, cedet, ecb, and gdb under gud in emacs and it's ok. But
nowhere near as easy or functional as a "proper" IDE like VS. PS, this
is under Linux where it is much more likely to work than under windows.

One thing I did see recently is that Slickedit now has a plugin for
Eclipse.

>
Regards,
Frodo B
--
Jul 24 '07 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
3409
by: Christian Seberino | last post by:
How does Ruby compare to Python?? How good is DESIGN of Ruby compared to Python? Python's design is godly. I'm wondering if Ruby's is godly too. I've heard it has solid OOP design but then I've also heard there are lots of weird ways to do some things kinda like Perl which is bad for me. Any other ideas?
1
13239
by: lovens weche | last post by:
Is there a good editor that can be used with a 32 bit compiler under the MS-Dos platform? I used to use the Watcom C++ 11 compiler but the editor that came with it (VI if I remeber) was not that great, in fact it was horrible. I'm searching for a Borland C++ style editor and a good C++ 32 bit compiler. Doesn't really matter if the compiler...
7
6160
by: Kyle Stevens | last post by:
Does anyone know of and good, and free, C++ compiler programs and where I might download them?
3
1937
by: happy | last post by:
I am searching over the net for a Good C compiler that has good editor .. Tc 2.01 has bad editor . please advice me with aweb site for downloading the godd Editor C compiler NOT C++. Thanks
9
3022
by: myhotline | last post by:
Hi all, After googling i came across Pelles C, is it a good C compiler over Windows( I am using Windows Xp )...Though Pelles C website says its a C99-compliant compiler, even though i would like somebody to tell me abnout this C99-COmpliance? Are there any other good C99-compliant comilers available for windows....please do let me know.......
43
2609
by: Sensei | last post by:
Hi! I'm thinking about a good programming style, pros and cons of some topics. Of course, this has nothing to do with indentation... Students are now java-dependent (too bad) and I need some serious motivations for many issues... I hope you can help me :) I begin with the two major for now, others will come for sure! - function...
87
3721
by: H. | last post by:
I am a student taking a machine structures class in a university, which includes learning C. I am looking for a good freeware or shareware compiler which can be used in a "C only" mode. C++ isn't allowed in assignments, and I would like the compiler to check for C syntax instead of C++ syntax. Besides that, ease of use for a beginner and...
159
6968
by: bernard | last post by:
howdy! please recommend a good c compiler. - should be small - should be fast - should come with a good ide - should be inexpensive i am using windows os.
23
3120
by: tonytech08 | last post by:
What I like about the C++ object model: that the data portion of the class IS the object (dereferencing an object gets you the data of a POD object). What I don't like about the C++ object model: that most OO features are not available for class object design without loss of POD-ness. So, I'm more than leaning toward "bad" because of...
0
7580
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7503
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8017
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7538
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7869
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5421
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5140
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3531
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2003
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.