Secondly, there could be an issue with the compiler supplied, depending on the age of it. However, I couldn't even begin to guess why since you're using updated iostream and fstream headers. My guess is that something may have broken during installation.
If you're dead set on using Dev-C++, please try uninstalling it, restarting your computer, redownloading it, and reinstalling. If the issue persists, it could be due to an issue in your environment itself, I'd attempt a thorough virus scanning.
If you're not picky on your IDE, which you really shouldn't be since you probably haven't really learned how to use it yet, I'd suggest switching to something a little more up to date. I personally suggest Code::Blocks as do others on the forum. That and Microsoft Visual C++ are the most popular. MSVC++ has known issues and it hinders itself so that is why I suggest C::B. I'll provide a link below for all OS's, just find the link to Windows mingw-setup and download that. Install it and attempt to run your code again. If you still are having issues, it is directly related to your system and not the compiler or the IDE.
http://www.codeblocks.org/downloads/26
I have created a sample program on C.When i try to run on a different system (win 7 64 bit) it is asking for x64 version of the file (of the executable file created ).
Alternatively, you can take the makefile that is automatically generated by Dev C and alter it, saving it under a different file name, like 'myprojectrelease.win'. What you'd do is alter it to remove command line switches like -g, -g3 or other similar flags that enable the. How are you running the file, from the C Prompt? What are you typing? Does the file name have any spaces or special charcters? Are you administrator? In the folder with your program type Dir and make sure the filename looks right. Make sure the file is not open in notepad or something.
P.S. - I am not talking about the compiler, but about the executable file created after compiling.
P.S.2 -I AM NOT MUCH GOOD IN ENGLISH PLEASE ASK AGAIN IF U R UNABLE TO UNDERSTAND.
P.S.3 - again the .exe file .....hehe lol ...
PLZ help..
thanx in advance
- 5 Contributors
- forum 6 Replies
- 1,539 Views
- 1 Day Discussion Span
- commentLatest Postby mike_2000_17Latest Post
Recommended Answers
This depends on which compiler you are using.
If you use Visual Studio (presumably on a 32bit Windows), then you can install a 64bit cross-compiler (and the necessary auxiliary tools and libraries), as it says '>
Jump to PostI see people using Turbo C++ sometimes, but this might be my first spot of plain Turbo C in the wild :p
For the history buffs, the last version of Turbo C was released in 1989, and made 16 bit executables for DOS.
For those to whom that means nothing, …
Jump to PostWhy Does Dev C++ Create An Exe File Download
All 6 Replies
mike_2000_172,669
This depends on which compiler you are using.
How To Create An Exe File
If you use Visual Studio (presumably on a 32bit Windows), then you can install a 64bit cross-compiler (and the necessary auxiliary tools and libraries), as it says '>here. Of course, if you use a version of Visual Studio that is older than 2008, then you really should update it, because, as far as I'm concerned, any version prior to 2008 is completely unusable (too sub-standard, poor performing, and feature-deprived).
Why Does Dev C++ Create An Exe File Online
If you are using MinGW (GCC), then you need to use '>MinGW-w64 which is a fork for mingw that supports both 32bit and 64bit for both host (what you are running on) and target (what you are compiling for).
If you are using any other Windows compiler (Intel? IBM? Borland?), then you would have to check with those vendors what is possible.
Why Does Dev C++ Create An Exe Files
Needless to say, if you are not working under Windows (e.g., you are working in Linux or Mac OSX), then this is impossible because these systems use completely different executable formats ('ELF' format, for all Unix-like systems), so, obviously that won't work in Windows. I don't know of any easy way to compile Windows executables from a non-Windows system (i.e., a Unix-like system), I suspect that setting this up is not for the faint of hearts.