I have a group of source files in a project. When I compile them from within the project, the console behaves oddly. The program 'detaches' itself from the console, which is immediately ready to accept another program. However, the program continues to run in the background. printf() succeeds, but nothing is ever written. I added an infinite loop to it, and although the console window returned to normal immediately, the task manager showed it was still running.
However, when I compile without the project open, the console behaves normally. printf works, and the console will not accept input until execution terminates.
I am writing a program that relies heavily on printf and this lack of it is rather distressing.
I did not write any code that could cause this to happen.
the project includes stdio.h, math.h and string.
HELP!?!!?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you post your compile log for us? It's on the tab labeled "Compile Log", and the right mouse button brings up the copy menu) (Yes, I realize you have no errors, I am looking for something else)
Wayne
p.s. You realize you never told us what version of Dev you are working with?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you created the projec, is it possible you have sleected "Win32 GUI" rather than "Win32 Console"? The Compile log will tell us that - that is what Wayne is looking for. If it contains -mwindows, that is what you have done.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a group of source files in a project. When I compile them from within the project, the console behaves oddly. The program 'detaches' itself from the console, which is immediately ready to accept another program. However, the program continues to run in the background. printf() succeeds, but nothing is ever written. I added an infinite loop to it, and although the console window returned to normal immediately, the task manager showed it was still running.
However, when I compile without the project open, the console behaves normally. printf works, and the console will not accept input until execution terminates.
I am writing a program that relies heavily on printf and this lack of it is rather distressing.
I did not write any code that could cause this to happen.
the project includes stdio.h, math.h and string.
HELP!?!!?
"that is what Wayne is looking for"
Actually, I was looking for the picture of scantily clad women that comes up
when you properly post your Basic 3....
Huge ;)
Can you post your compile log for us? It's on the tab labeled "Compile Log", and the right mouse button brings up the copy menu) (Yes, I realize you have no errors, I am looking for something else)
Wayne
p.s. You realize you never told us what version of Dev you are working with?
When you created the projec, is it possible you have sleected "Win32 GUI" rather than "Win32 Console"? The Compile log will tell us that - that is what Wayne is looking for. If it contains -mwindows, that is what you have done.