Hi I just started using codeblocks and created a simple helloworld program (which was written automatically using C). The problem is that when i run it the screen that is supposed to pop up with the output doesn't show up, how can I fix this?
Hi I just started using codeblocks and created a simple helloworld program (which was written automatically using C). The problem is that when i run it the screen that is supposed to pop up with the output doesn't show up, how can I fix this?
You may have chosen a GUI project. Go to Project Properties and change it to console
Devoted my life to programming...
No, I used console. I got an error message this time which says ""random - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping..." any help on this?
Are you sure the console isn't opening and closing again so fast you cant' see it?
Try adding a getchar(); right before the return at the end of main.
Code:int main (void) { puts("Hello World"); getchar(); return 0; }
no it's not. I used codeblocks a while ago (earlier version) and had the same problem but I solved it by clicking on an option to display the output on a different screen but I don't see to have that option anymore.
Code::Blocks v10.05 (this *might* work on older versions; I don't know)
try this: Go to Settings->Compiler and Debugger
click "Global Compiler Settings" on the left
then find the "Toolchain Executables" tab
click the button "Auto-Detect"
If you have MinGW installed or installed Code::Blocks with MinGW it will find your executables.
Everything should work then.
yayy, thanks I finally fixed it. Now I have another problem
I am able to run a program but if I try to run another one then it gives me the output of the previous program.
ok nm, I just realized about my mistake and everything is working fine
thanks for the help bro