Thread: Help - Compile > .exe

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    4

    Help - Compile > .exe

    Hey,

    I've just started c++ today and i can't seem to get my files to .exe...

    I compiled the file but still its in the format .cpp - Can anyone tell me what to do here?

    I'm using Dev-C++

    Thanks

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    If it compiled and linked without error, then I would suspect that you have created an .exe, you just don't know where. Use Explorer, Find or similar to look for it. Alternatively, do you have a "Make" option - some compilers don't export the .exe until you tell it too.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    dev c++, if i remember correctly, creates an exe file in the same directory as the cpp file. the cpp file will still be there, though.

    if you cant find an exe file at all, the most probable case is that your program had some errors in it. if you just started c++ today, then that is likely the case... i remember writing my first program on my own, i spent nearly all day weeding out typos and missing semicolons.
    I came up with a cool phrase to put down here, but i forgot it...

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    4
    Hi,

    I think i got it working! Thanks for the help everyone

    Is C++ only for certain operating systems?

    And can someone test the attached file...

    Thanks



    Just testing compiling.
    Last edited by DistorteD; 03-26-2003 at 12:12 PM.

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    4

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    You'll find that people will not in general download and run unknown executables from whatever source, there is just too much malicious stuff around.

    If you want someone to try it, post the source plus any special headers and resource files necessary, and they can compile it themseleves, (zip it together and post the .zip).

    >>> Is C++ only for certain operating systems?

    C++, or any language, is limited to running on OS's that have a suitable compiler. That said, most modern OS's have one or more C++ compilers available.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    4
    My compiler is annoying It gives error's most of the time and never does its job - Can anyone recommend any others?

  8. #8
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    There are links to compilers in the FAQ, however, of the free ones, Dev-C++ is quite highly thought of. Why is it giving errors and not doing it's job? No compiler will compile bad code.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. > > > Urgent Help < < <
    By CodeCypher in forum C Programming
    Replies: 2
    Last Post: 01-31-2006, 02:06 PM
  2. .exe question
    By stillwell in forum C++ Programming
    Replies: 10
    Last Post: 10-05-2004, 01:25 PM
  3. Replies: 3
    Last Post: 03-27-2004, 12:15 PM
  4. compile once, compile twice ...error
    By Benzakhar in forum Windows Programming
    Replies: 6
    Last Post: 12-28-2003, 06:00 AM
  5. --> Compiling Problems -->
    By j0hnb1ank in forum C Programming
    Replies: 1
    Last Post: 01-28-2003, 06:41 AM