| View previous topic :: View next topic |
| Author |
Message |
Felipe Monteiro de Carval Guest
|
Posted: Sat Oct 21, 2006 2:23 am Post subject: Using c++ compiler for c |
|
|
Hello,
I know this is a extremely noobie question, but can I use a c++ compiler
as a c compiler?
I mean, for professional c++ compiler I right away imagine Borland C++
and Visual C++. And what about people writing pure c? What do they use
except gcc?
So can I use Borland C++ or Visual C++ for pure c development?
thanks,
Felipe |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Oct 21, 2006 2:47 am Post subject: Re: Using c++ compiler for c |
|
|
"Felipe Monteiro de Carvalho" <felipe (AT) nospam (DOT) com> wrote in message
news:45393e57 (AT) newsgroups (DOT) borland.com...
| Quote: | I know this is a extremely noobie question, but can I use a
c++ compiler as a c compiler?
|
Yes. The compiler looks at the file extension, unless overwritten by a
switch. A .c file is compiled as C, whereas a .cpp file is compiled as C++
instead.
Gambit |
|
| Back to top |
|
 |
Alex Bakaev [TeamB] Guest
|
Posted: Sat Oct 21, 2006 2:48 am Post subject: Re: Using c++ compiler for c |
|
|
Felipe Monteiro de Carvalho wrote:
| Quote: |
So can I use Borland C++ or Visual C++ for pure c development?
|
Yes. |
|
| Back to top |
|
 |
|