Source File not Compiled Error

Mar 4, 2013 at 3:42pm
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
World!
cout << "I'm a C++ program"; // prints I'm a
C++ program
return 0;
}
Last edited on Mar 4, 2013 at 6:09pm
Mar 4, 2013 at 4:09pm
The comments need to be preceded by //
// World!
and
// C++ program
Mar 4, 2013 at 4:09pm
Does it compile if you comment out this line:
cout << "I'm a C++ program"; // prints I'm a C++ program ?

Edit:
I just assumed the OP c/p'ed hid code like that. With comments on each line without the '//'.
Last edited on Mar 4, 2013 at 4:11pm
Mar 4, 2013 at 4:23pm
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
Mar 4, 2013 at 4:31pm
Can you compile this?
1
2
3
int main()
{
}
Mar 4, 2013 at 4:32pm
closed account (Dy7SLyTq)
what os are you using?
Mar 4, 2013 at 4:38pm
Dev-C++ no admin rights @L B i can compile but i cant run it says source file not compiled
Mar 4, 2013 at 4:49pm
closed account (Dy7SLyTq)
im guessing windows then?

screw around with the build options and see if you can get it to remove the comments
Mar 4, 2013 at 5:17pm
yes windows 7
Last edited on Mar 4, 2013 at 5:53pm
Topic archived. No new replies allowed.