Thread: Project is not compiled

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    2

    Unhappy Project is not compiled

    no matter how many times I compile this thing it won't run, even if I make it compile and run it doesn't do it! What is going on?
    someone help me here because I can't really do anything till I get this sorted

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    The question is kind of vague, are there any errors when you compile the code?

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    yeah that's very vague. Maybe if you told us what you're compiling, what your compiling it with and where you are compiling it (OS).

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    http://cboard.cprogramming.com/showthread.php?t=13473

    Read that and then post your code correctly. Also, as mentioned above, post the errors you are given (including details such as the line number they occur on), your compiler and your OS.

  5. #5
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    no matter how many times I compile this thing it won't run
    I tried compiling it myself, and I couldn't get it to run either--I'm stumped.
    Last edited by 7stud; 04-06-2005 at 12:22 AM.

  6. #6
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    Ok so it compiles but doesn't run?


    I think I might have an inkling as to what's going on. Ok firstly, I'm gonna have to make a few assumptions.
    My first assumption is that you are using Devshed++, which you probably downloaded from the net as freeware?
    My second assumption is that you are a newbie so your first program
    will probably be the classic *hello world*.

    You say that in some circumstances you get in to compile but it doesn't run.
    Try this:

    Code:
    #include<iostream>
    
    
    using namespace std;  //this is always needed
    
    int main()
    {
     cout<<"Hello World"<<endl;
    
      int stop;
      cin>>stop;   // I suspect this is what your problem is
                          // You need to pause it so you can see what you got
                          //  Remember in devshed the 'return 0;' doesn't pause 
                          //  it in fact you don't even need it.
    
    }

  7. #7
    Registered User
    Join Date
    Apr 2005
    Posts
    2

    Thumbs up

    thanks the example shown must have been incomplete or something then.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. renaming a project created with MSVC 6
    By Bleech in forum Windows Programming
    Replies: 2
    Last Post: 10-31-2006, 01:19 AM
  2. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 12:48 AM
  3. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 09:01 AM
  4. DJGPP project problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-08-2002, 07:16 PM
  5. c++ OOP project ideas
    By newbie17 in forum C++ Programming
    Replies: 4
    Last Post: 02-25-2002, 12:40 PM