User forums > Help
C::B won't build my C++ file
iamunited:
I have been using C::B for awile but used it in C. But I would rather use C++ but I cannot get it to build my file.
Here is what I am trying to run, very simple program:
--- Code: ---#include <iostream>
using namespace std;
int main()
{
cout << "I have installed putty" << endl;
}
--- End code ---
I know this says that this is not a programming forum but I need help getting C::B to work properly. Worked fine for C.
Thanks
TerryP:
That is a valid enough C++ program.
You might get more help by specifying....
0.) Code::Blocks version
1.) Compiler/version
2.) The exact error message from Code::Blocks
if it fails to compile, I would expect your compiler or project settings are flubbed.
MortenMacFly:
--- Quote from: iamunited on January 28, 2010, 02:32:07 am ---I have been using C::B for awile but used it in C. But I would rather use C++ but I cannot get it to build my file.
[...]
Worked fine for C.
--- End quote ---
Make sure you installed the C++ compiler, too. This is a separate package.
iamunited:
Where can I go to install the C++ Compiler?
MortenMacFly:
--- Quote from: iamunited on January 28, 2010, 07:30:00 am ---Where can I go to install the C++ Compiler?
--- End quote ---
Depends on your system/config which you still did not tell.
Navigation
[0] Message Index
[#] Next page
Go to full version