Beginning with DEV C++

Hello,
I am a beginner with C++ and am using DEV C++ 4.9.4.2. I created my very first project; Hello WOrld. However it is failing to work.
Here is the code I have.

#include<iostream>
int main()
{
std::cout<<"Hello World";
return 0;
}

When I compile it gives me the message below;

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c "Hello WOrld" -o "Hello WOrld.o" -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"

g++.exe: Hello WOrld: linker input file unused because linking not done

g++.exe "Hello WOrld.o" -o "Project1.exe" -L"C:/Dev-Cpp/lib"

g++.exe: Hello WOrld.o: No such file or directory
g++.exe: no input files

make.exe: *** [Project1.exe] Error 1

Execution terminated


If someone knows what I need to do, I highly appreciate your advice. Thank you and Kind Regards.
closed account (E0p9LyTq)
DevC++ 4.9.4.2 is ooooooooold, it uses a outdated version of MinGW. Even the latest version of DevC++ is old, it hasn't been updated in over a year.

Did you give your source code file a name with a space? "Hello World.cpp" (without the quotes) for example? By the look of your compiler log you did. Remove the space ("HelloWorld.cpp" or "Hello_World.cpp") and try compiling again.

You might have to create a new project.

PLEASE learn to use code tags, it will help us to understand your code.
http://www.cplusplus.com/articles/jEywvCM9/

You can edit your post and add the code tags.
There's a problem with the install. Your code is fine.

https://sourceforge.net/projects/orwelldevcpp/files/?source=navbar
Topic archived. No new replies allowed.