Code::Blocks Forums
User forums => Help => Topic started by: Manishyam on February 18, 2011, 05:55:20 am
-
Hi, I am new to code blocks. I started using it as a C compiler which worked quite OK. But when I started using C++ programs, it seems to give weird (appears to me) output. Could anyone suggest what should I do to run programs in C++?
Thanks
-
The most common mistake seems to be to use a c file-extension for c++ files.
Do not use c, but cpp (or cxx) as file-extension.
And of course make sure you have a c++ compiler installed and set up properly.