By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,159 Members | 888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,159 IT Pros & Developers. It's quick & easy.

C/C++ sources compiled with MINGW(DevCPP) as C++

P: n/a
Hi...

I am wrinting a win32-aplicattion that not uses classes.
I use stdio.h and iostream for example, and, the operators new & delete
for memory.

Then... Is "licit" to mix c & c++ code, compiled as c++, without OOP ??

Or.. maybe i have to translate to only C code and forget "cout <<",
new, delete, etc... if I not use objectes and classes?

By the way, another question. If The project is in c++ option setting,
the extensions of the sources are created as *.cpp and the default
compiler is g++.exe. If the project option language is C, is the
gcc.exe the default compiler... thats right I suppose... So... Why not
use g++.exe for *.cpp and *.c ??

Txs!!

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi!!!

Jose Garcia wrote:
By the way, another question. If The project is in c++ option setting,
the extensions of the sources are created as *.cpp and the default
compiler is g++.exe. If the project option language is C, is the
gcc.exe the default compiler... thats right I suppose... So... Why not
use g++.exe for *.cpp and *.c ??


Because C and C++ are diffrent languages and sometimes incompatible.
See:
http://david.tribble.com/text/cdiffs.htm
for details.
Best
Darek

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.