.EXE is messed up, but my program runs fine in the compiler!

This is a discussion on .EXE is messed up, but my program runs fine in the compiler! within the C++ Programming forums, part of the General Programming Boards category; I made a new program, and successfuly got it to work without any help! Well, sorta. I have a GNU ...

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    14

    .EXE is messed up, but my program runs fine in the compiler!

    I made a new program, and successfuly got it to work without any help! Well, sorta. I have a GNU C++ compiler, and when I click Run>Run, the program executes EVERYTHING without any errors. But, when I try to run the program using the .exe file, I enter one thing and the program terminates. Yes, I have updated the application MANY times, but still nothing.

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    It could be a compiler problem...it could be many things.
    What are you trying to say?
    The world is waiting. I must leave you now.

  3. #3
    Registered User
    Join Date
    Aug 2002
    Posts
    14
    I mean, I don't know why it's messed up. How do I fix it? Should I post my source code?

  4. #4
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680
    Yes please... Maybe it's a memory problem.

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    this happens a fair bit. is your program accessing files?? maybe your IDE actually runs your exe with a different working directory which means that if you are opening files, relative path names wont work. if you are opening a file without error checking this could cause problems.

    if this kind of thing isn't a problem, post your code.
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  6. #6
    Registered User
    Join Date
    Aug 2002
    Posts
    14
    Never mind, I fixd the problem. And, I did it without help!
    Last edited by DarkSFK; 08-05-2002 at 08:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-30-2009, 03:06 AM
  2. funcion runs 14 times, then program crashes
    By happyclown in forum C Programming
    Replies: 9
    Last Post: 03-03-2009, 11:58 PM
  3. compiler does run .exe not
    By hoppy in forum C++ Programming
    Replies: 10
    Last Post: 01-06-2008, 02:59 PM
  4. Runs fine in IDE but crashes normally!
    By Hunter2 in forum Windows Programming
    Replies: 5
    Last Post: 05-07-2002, 04:47 PM
  5. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 10:08 PM

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