Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Help
»
Running C++ programs
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Running C++ programs (Read 3604 times)
Manishyam
Guest
Running C++ programs
«
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
Logged
Jenna
Administrator
Lives here!
Posts: 7252
Re: Running C++ programs
«
Reply #1 on:
February 18, 2011, 06:44:26 am »
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.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Help
»
Running C++ programs