473,324 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

C compiler for Windows?

I would like to write some C code in winXP. I was told that I could use
visual c++ but does that not only work for C++?

What compiler is the best for C and C++ in windows?

Johs
Apr 9 '06 #1
8 2350
Johs32 schrieb:
I would like to write some C code in winXP. I was told that I could use
visual c++ but does that not only work for C++?
<OT>Visual C++ also provides a C mode; it is possible to make
sure that it never erroneously tries to compile C code as C++
code</OT>

What compiler is the best for C and C++ in windows?


We do not discuss C++ here.

For C:
Depends. What do you mean by "best"?
- Conforming to standard C? Provides C89 and C99 mode?
- Does not cost much or nothing?
- Compiler source available so you can be sure the compiler
does not do bad things?
- Nifty language extensions (which make the code non-portable)?
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Apr 9 '06 #2

"Michael Mair" <Mi**********@invalid.invalid> skrev i en meddelelse
news:49************@individual.net...
Johs32 schrieb:
I would like to write some C code in winXP. I was told that I could use
visual c++ but does that not only work for C++?


<OT>Visual C++ also provides a C mode; it is possible to make
sure that it never erroneously tries to compile C code as C++
code</OT>


Where should I post this question instead?
Apr 9 '06 #3

"Johs32" <sd**@dss.com> wrote in message
news:e1**********@news.net.uni-c.dk...

"Michael Mair" <Mi**********@invalid.invalid> skrev i en meddelelse
news:49************@individual.net...
Johs32 schrieb:
I would like to write some C code in winXP. I was told that I could use
visual c++ but does that not only work for C++?

Visual C++ will be fine for C code. Just save the source file as '.c' file
and it will be compiled as a C file. Save the source file as a '.cpp' file
and it will be compiled as a C++ file.

Alternatively use the freely available MinGW (native Win32 port of gcc)
compiler. Its C compiler is called 'gcc' and its C++ compiler is called
'g++' - you can invoke whichever one you want.

<OT>Visual C++ also provides a C mode; it is possible to make
sure that it never erroneously tries to compile C code as C++
code</OT>


Where should I post this question instead?


My suggestion would be comp.os.ms-windows.programmer.misc.

Cheers,
Rob

Apr 9 '06 #4
On Sun, 9 Apr 2006 12:01:01 +0200, "Johs32" <sd**@dss.com> wrote:

"Michael Mair" <Mi**********@invalid.invalid> skrev i en meddelelse
news:49************@individual.net...
Johs32 schrieb:
I would like to write some C code in winXP. I was told that I could use
visual c++ but does that not only work for C++?


<OT>Visual C++ also provides a C mode; it is possible to make
sure that it never erroneously tries to compile C code as C++
code</OT>


Where should I post this question instead?


-++
Apr 9 '06 #5
Johs32 wrote:
I would like to write some C code in winXP. I was told that I could use
visual c++ but does that not only work for C++?
Almost all C++ compilers can be made to work as C compilers as well.
What compiler is the best for C and C++ in windows?


That is a matter of debate. I suggest you ask in a Windows group, since
we don't deal with specific tool sets here. However, you may find this
reference useful http://clc-wiki.net/wiki/C_Compilers

See the link in my sig for more information about this group.
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
Apr 9 '06 #6
"Johs32" <sd**@dss.com> wrote in message
news:e1**********@news.net.uni-c.dk...
I would like to write some C code in winXP. I was told that I could use
visual c++ but does that not only work for C++?

What compiler is the best for C and C++ in windows?
Each compiler has its good points and bad points. For example, my thoughts
on a few of the common ones are:-

Salford C++ => Supposedly has features to help a beginner get started.
Expensive for the individual

Microsoft Visual "C" => Good IDE, may be needed for some programs, use may
cause poloitical harm. I have found its include files a little odd.

GNU C => Mingw Port => Free compiler that produces Native C code. Missing
some oft used routines in the library.

GNU C => cygwin => Basically same compiler but use a UNIX compatability
layer. Better UNIX compatability, but changes in comptabaility layer may
make distribution and testcode tricky..

Watcomm "C". => Free compiler with IDE, Native Windows code, good help
system. Bit of a niche compiler so support may not be as good as the others.
Also if you are modifiying existing code than using the same compiler as the
author may help.
Johs

Apr 9 '06 #7
On 2006-04-09, Johs32 <sd**@dss.com> wrote:
I would like to write some C code in winXP. I was told that I could use
visual c++ but does that not only work for C++?

What compiler is the best for C and C++ in windows?

Johs


Although drifting off topic, it might well come down to what you want
to program in C. Here is a good website discussing the various options:

http://www.thefreecountry.com/compilers/cpp.shtml

What is your level of experience? If you're old fashioned then gnu c with
gdb under cygwin is very, very competent : if you want a pretty front
end then I'm not sure if the current crop of gcc/gdb front ends are cygwin
compatible : you'll have to do some research. There are so many
options depending on your targets.

Whichever way, you'll get more help in a windows programming
newsgroup I suspect ...

Good luck!

--
Aspirat primo Fortuna labori.
-- Virgil, and all good teachers
Apr 9 '06 #8
On Sun, 9 Apr 2006 10:40:57 +0200, "Johs32" <sd**@dss.com> wrote:
I would like to write some C code in winXP. I was told that I could use
visual c++ but does that not only work for C++?

What compiler is the best for C and C++ in windows?

Many products, including VC++, contain both a C and a C++ compiler,
either as separate programs or as different modes within a single
program.

This group deals only with the standard C language. Questions about
specific systems, such as WinXP, or specific compilers, such as VC++,
belong in groups where those subjects are topical.
Remove del for email
Apr 9 '06 #9

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

Similar topics

2
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT...
3
by: Hamilton | last post by:
Hi there, I've seen this error appear a few times in newsgroups but unfortunately I haven't found one that actually provides a solution. I'm basically deploying a new website into an area at a...
1
by: Razzie | last post by:
Hi all, I was working on a little project, worked fine, but now all of a sudden I get: The compiler failed with error code -1073741502 as an error message (when running the site, not...
1
by: keithb | last post by:
This application works without error in the development environment using the VS web server. When I publish the site to my IIS 6.0 server, I get this error at runtime when I open the Change...
48
by: meyer | last post by:
Hi everyone, which compiler will Python 2.5 on Windows (Intel) be built with? I notice that Python 2.4 apparently has been built with the VS2003 toolkit compiler, and I read a post from Scott...
1
by: Bruce | last post by:
We suddenly got a mysterious error message on our Windows Server 2003 (SP1) after rolling out a bug fix on a web services application this morning. The application compiles and runs fine on the...
1
by: bhanupoornakumar | last post by:
Hi .. when i am setting a website i am getting the following error.. The compiler failed with error code -1073741819. This is the full error .. u can see below. Compilation Error ...
0
by: gmsieling | last post by:
We're getting compiler error CS0006, with increasing frequency. It says that a randomly named DLL was not found. This happens at random intervals when you try to run the application. We're using the...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
1
by: kmsandeep17 | last post by:
when i host my site on go daddy it give error Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.