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
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
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.
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...
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.
Edit - Link Here - www.phonefreak.net/forum/helloworld.exe
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.
My compiler is annoying It gives error's most of the time and never does its job - Can anyone recommend any others?
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.