RE: [Dev-C++] Bloodshed or dev-c++ question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2002-04-14 12:01:50
|
<http://run.to/noicys> -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Bob Wilson Sent: Sunday, April 14, 2002 7:42 AM To: Dev-C++ User Mailing List Subject: [Dev-C++] Bloodshed or dev-c++ question Today I spend another marathon session trying to figure out why I could not get any console output from a program. I could go to a DOS window and type "newarray > test.txt" and the file created was exactly what I expected the console output to be. If I brought up the windows "close program" window by doing the Ctrl-Alt-Del trick, it would show that the program was still running, but the DOS window had returned to the command prompt. newarrray > test.txt means output redirection. You redirect the output to the file instead of the console. This is the second time something like this has happened. In both cases, I had accidentally had selected a windows application in the new project window and then deleted the default "Untitled1.cpp" it created. That fill was filled with windows specific code. When I deleted that file, I thought I had fixed the problem, but I had not. I finally discovered that the code I had written was fine when I copied it to a different name and compiled it on a different compiler. I deleted the project, rsrc.o, and rsrc.rc files and returned to the dev-c++ environment. I created a new console project, compiled the code and it ran perfectly. Since this was the second time, you would think I would not have wasted a half a day solving it. The problem is insidious because it is hard, at least for me, to detect. My request for assistance is this: 1. Is there an easier way to solve the problem other than deleting the files and starting over? In other words, is there a file I can check for a flag, etc? 2. Is there something that is easily identifiable that the Bloodshed IDE that would be an obvious clue that this is the problem? For simple console programs do not use projects. But if you wish to use projects anyway, create a new console project and add your files there. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys |