BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using c++ compiler for c

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical)
View previous topic :: View next topic  
Author Message
Felipe Monteiro de Carval
Guest





PostPosted: Sat Oct 21, 2006 2:23 am    Post subject: Using c++ compiler for c Reply with quote



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





PostPosted: Sat Oct 21, 2006 2:47 am    Post subject: Re: Using c++ compiler for c Reply with quote



"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





PostPosted: Sat Oct 21, 2006 2:48 am    Post subject: Re: Using c++ compiler for c Reply with quote



Felipe Monteiro de Carvalho wrote:
Quote:

So can I use Borland C++ or Visual C++ for pure c development?


Yes.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.