Posted by Goku_75 on 06:49:00 10-01-2003
Whenever I try to run something it says that it's not compiled. When I compile something a window pops up and usually disappears. Then When I try to run the program it says the program is not compiled. Please help me. I'm really confused.
[addsig]
Posted by cowsarenotevil on 07:02:00 10-01-2003
You need to show use your code, and the errors you get.
Posted by ItinitI on 07:21:00 10-01-2003
If you're programme is like a "hello, world" prog, you need to run it through the command shell [like DOS]. This could be why when you execute it, it simply pops up and then goes away... it took me a while to figure out that such had to be run in a command line when i was just starting out =/
[addsig]
Posted by eosp on 11:13:00 10-01-2003
You're probably compiling like this:
gcc -c file.c -o file.exe
It's actually a two step process. Replace that with this line:
gcc -c file.c -o file.o
Notice that it's file.o not file.exe.
Then enter gcc -o file.exe file.o
This will make file.exe. Run this, and it should work. It will if it says nothing.
[addsig]
Posted by cowsarenotevil on 05:40:00 10-02-2003
Actually, he's using Dev-C++, which does that stuff for you.
Posted by Goku_75 on 07:15:00 10-02-2003
For: cowsarenotevil
I don't get what you mean by it does that for me. What does it do for me. I'm pretty sure it doesn't compile stuff for me cause it keeps saying i need to compile it. By the way you're pretty smart. You knew I had dev c++
Posted by cowsarenotevil on 07:42:00 10-02-2003
Quote:
On 2003-10-02 07:15, Goku_75 wrote:
For: cowsarenotevil
I don't get what you mean by it does that for me. What does it do for me. I'm pretty sure it doesn't compile stuff for me cause it keeps saying i need to compile it. By the way you're pretty smart. You knew I had dev c++
Actually, I knew you had Dev-C++ because I recommended it to you, and then you were trying to compile things, so I bottomumed you had gotten it. But what happens when you try to compile it, exactly? Exactly what errors? Parse errors? Also, what code are you using?
Posted by Goku_75 on 06:17:00 10-05-2003
it says done with errors
all i'm running is a sample code
when i try to run it a window comes up saying "warning project not compiled"
Posted by cowsarenotevil on 09:04:00 10-05-2003
Quote:
On 2003-10-05 06:17, Goku_75 wrote:
it says done with errors
all i'm running is a sample code
when i try to run it a window comes up saying "warning project not compiled"
For crying out loud, tell us what the errors actually are! "Done with errors" shows that you have errors, what are they? There's a little box down at the bottom that should list them all. Unless we see you're exact code (copied and pasted) and exact errors, we can't help.
Posted by eosp on 12:29:00 10-05-2003
Some of us can't help at all because we use gcc and the errors are lines like:
myprog.c:314159265358: Calculates pi to the first digit
[addsig]
Posted by Goku_75 on 06:18:00 10-08-2003
Here's what I exactly put:
#include
using namespace std;
int main (int argc, char *argv[])
{
cout