Sorry to detract your time away from real programming problems but I'm just starting out in C++, have a ver of Dev C, am working through the tutorials, and am finding that none of my compiled .exe files will run. Before I go any farther, I need to get to the bottom of that, because it's apparantly not my simplistic code at fault.
Last sample was :
Code:
#include<iostream>
using namespace std;
int main()
{
int thenumber;
cout<<"Please enter a number.";
cin>> thenumber;
cin.ignore();
cout<<"You entered: "<< thenumber <<"\n";
cin.get();
}
and the make looks like :
Code:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make clean
rm -f Projects/Openers3.o Openers3.exe
g++.exe -c Projects/Openers3.cpp -o Projects/Openers3.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 Projects/Openers3.o -o "Openers3.exe" -L"C:/Dev-Cpp/lib" -mwindows
Execution terminated
Compilation successful
After this, nothing loads at all from the .exe. It's one project, started as an .exe, and the single code file. Any suggestions?
Should I try re-installing Dev, or am I overlooking something in my configuration of it, etc?