Source File not Compiled Error

Okay im trying to compile this and run it im just trying to run this code
and i dont have admin rights when i try to compile and run it says source file not compiled. What is Source file ?

Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Users\Tyre.Pickett\Desktop\Untitled3.cpp" -o "C:\Users\Tyre.Pickett\Desktop\Untitled3.exe" -g3 -g3
Execution terminated

/* my second program in C++
with more comments */
#include <iostream>
using namespace std;
int main ()
cout << "Hello World! "; // prints Hello
cout << "I'm a C++ program"; // prints I'm a
C++ program
return 0;
Last edited on
The comments need to be preceded by //
// World!
// C++ program
Does it compile if you comment out this line:
cout << "I'm a C++ program"; // prints I'm a C++ program ?

I just assumed the OP c/p'ed hid code like that. With comments on each line without the '//'.
Last edited on
Its still not working its says source file not compiled for testing give me a short code that works for you and post it here and i'll see if it works
Can you compile this?
int main()
closed account (Dy7SLyTq)
what os are you using?
Dev-C++ no admin rights @L B i can compile but i cant run it says source file not compiled
closed account (Dy7SLyTq)
im guessing windows then?

screw around with the build options and see if you can get it to remove the comments
yes windows 7
Last edited on
Topic archived. No new replies allowed.