Code::Block question

This is a discussion on Code::Block question within the C++ Programming forums, part of the General Programming Boards category; After I compiled a code into Code::Block, I could able to run the .exe from Code::Block. When I run my ...

  1. #1
    Registered User
    Join Date
    May 2007
    Location
    Somewhere in Malaysia
    Posts
    16

    Code::Block question

    After I compiled a code into Code::Block, I could able to run the .exe from Code::Block. When I run my programme in Code::Block, it only closes when I press the enter button. However, when I tried to run it OUTSIDE of Code::Block, I couldn't see the programme. The programme just blink and closes. My .exe file is located in E:\Programming Files\C++\C++ Scripts\Lesson scripts\IloveCpp\bin\Release. Inside Release folder, my .exe file is there. When I click it, it just blink like 0.25 seconds and closes without even needing to press enter. What's wrong with Code::Block? When I compile and run codes in Dev-5, it can run well. Can someone help me out?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,624
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21