r/learnprogramming • u/Eltnumfan • 3h ago
Newer versions of CodeLite not bringing up CMD after building project.
I decided to get back into coding and want to start from the beginning and I am following a guide which is using CodeLite as an IDE. The problem is whenever I run and execute a project in the most stable version of CodeLite, it doesn't bring up the cmd but I did upgrade it to 19.0.0 and that brings up cmd but it does not show anything. I just ended up downgrading to 17.3.0 and that is making the cmd show up and working just fine.
I tried searching online for a solution for the newer versions and nothing is really showing up. I had it set to cmd and I thought it had something to do with my Anti virus but even after white listing it, cmd still won't show up. I can take a screen shot of it and post what it looks like if need be but am wondering if anyone who had this problem figured out a solution. Otherwise I can just stick to a previous version.
1
u/Explorer651 2h ago
Might not be your exact problem, but CodeLite's wiki says programs run inside a terminal and there's a "Pause when execution ends" checkbox in Project Settings (General tab) that keeps it open after the program finishes. Worth checking it's still ticked in the newer version.
1
u/AnswerVinod 1h ago
I hit something like this before, usually the program runs and exits instantly so the window closes before you see anything. In CodeLite check the setting that keeps the console open after the run, it is in the terminal settings and newer versions moved it around. Quick test is run the exe straight from the output folder in a cmd window you opened yourself, if it prints and exits there too then it is your code exiting, not CodeLite.