Microsoft Visual Studio

C

Chris H

Default User said:
Yes. Microsoft has never really embraced C99, although some parts of it show
up as extensions.

Nobody embraced C99.... AFAIK there are only 4 compilers with full C99
implementations.
 
L

lawrence.jones

Ian Collins said:
I think that's based on gcc, which accepts all sorts of extensions
unless you tell it not to.

No, it's based on C++, which allows mixing statements and declarations.
 
K

Keith Thompson

No, it's based on C++, which allows mixing statements and
declarations.

I've never used Dev-C++, but my understanding is that it's an
IDE that includes MinGW, which in turn includes the gcc C and C++
compilers. gcc's C++ compiler of course permits declarations and
statements to be mixed. gcc's C compiler, in its default mode, also
permits declarations and statements to be mixed; its default mode
does not attempt to conform to C99, so this is an extension to C90.

Which if these is relevant depends on the mode in which Dev-C++
invokes gcc by default (assuming there is a meaningful default).
I would guess that you have to tell it which language you want
to use when you create a project.
 
R

Richard Bos

No, it's based on C++, which allows mixing statements and declarations.

No, it comes with both a C _and_ a C++ implementation, both of which
_are_ based on gcc(++). However, the C compiler does not accept the OP's
code (at least not with the options set as I have them), so I suspect
that you are right in so far that he uses the C++ compiler.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top