Code (Text): /* This program displays "I love C++" to the Standard Output */ #include <iostream> int main () { std::cout << "I Love C++"; return 0; } I was following a book from 2003 and trying to adjust to changes since most of the websites, programs, and downloads they use and mention are gone or so outdated they don't work anymore. I did manage to get Dev C++ 4.9.9.2 to compile. I typed in the above code and when I click on compile it says "Source file not compiled" I don't know what I'm doing wrong and if you need more information I can tell you but I don't know what else I could tell you that would help right now.
Are you sure you clicked "compile" and not just "run"? If so, try pressing "Compile & run". If it still doesn't work, please post the compiler log here
Alright, well, I just did compile/run on Dev C++, and it ran fine. Do you have all the basic libraries/header files and such included? (They *should* be by default, but it doesn't make any sense if that can't compile source code.)
You have to save your program in .cpp format not in .c(Dev c++ doesnt take .c correctly). After saving then try again it should work!!
Well this is probably the problem and I didn't see anything about this on their site when I downloaded it. I clicked compile alone. Clicked run alone. Clicked Compile & Run alone. They all didn't do it for me. Here is the log Code (Text): Compiler: Default compiler C:\CPPFiles\ILoveCPlusPlus.cpp Compiling Done.
Hmmm that might be a problem. I *think* the included mingw doesn't support 64-bit, so you might have to look into it. Try using the XP mode in windows 7? If it can handle a 32 bit XP operating system, everything should compile fine (on the virtual machine, of course).
So if I wanted to continue just doing everything on 64-bit I should look for a new compiler? Or is 64-bit the actual problem?
Actually, I have no experience on 64-bit windows OS'es, so I can't be sure. I think everything should still compile fine (afterall there's 32bit support for a reason) but it won't be optimized. You probably won't care as for the moment you're just doing basic standard input/output stuff, so w/e