User forums > Using Code::Blocks
Unable To Compile
Shattered_Farewell:
I'm fairly new at C++ and to test it out I wrote the following into the compiler.
--- Code: ---#include <iostream>
using namespace std;
int main()
{
cout << "Hello World From About\n";
}
--- End code ---
I saved it as a file named "hello world" and clicked Build>>Compile current file.
As I said I'm really new at this, isnt it suppose to compile into a program?
Shattered_Farewell:
Okay actually I did all that but I put it in a project and clicked build and run. It doesnt work and I get:
Project : Untitled1
Compiler : GNU GCC Compiler (called directly)
Directory : ****************************************
--------------------------------------------------------------------------------
Switching to target: default
Linking executable: C:\**********\Untitled1.exe
mingw32-g++.exe: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
Note: By the way, I just blocked out the directory with those stars.
sethjackson:
--- Quote from: Shattered_Farewell on March 02, 2006, 01:08:53 am ---I'm fairly new at C++ and to test it out I wrote the following into the compiler.
--- Code: ---#include <iostream>
using namespace std;
int main()
{
cout << "Hello World From About\n";
}
--- End code ---
I saved it as a file named "hello world" and clicked Build>>Compile current file.
As I said I'm really new at this, isnt it suppose to compile into a program?
--- End quote ---
Yeah. Are you using RC2? If so get a nightly from here.
http://forums.codeblocks.org/index.php?board=20.0
Hmm also the project file could be messed up.... Could you post it here? It is XML (that is what I want to see open the project with Notepad or something).
Shattered_Farewell:
Yes, I am. The newest one. Should I just download http://download.berlios.de/codeblocks/CB_20060301_rev2102_win32.7z to it? And I don't know how you want me to post the project
sethjackson:
--- Quote from: Shattered_Farewell on March 02, 2006, 02:56:24 am ---Yes, I am. The newest one. Should I just download http://download.berlios.de/codeblocks/CB_20060301_rev2102_win32.7z to it? And I don't know how you want me to post the project
--- End quote ---
Ok. Umm just post the .cbp file here. :)
Navigation
[0] Message Index
[#] Next page
Go to full version