User forums > Help

Can't build and run

(1/4) > >>

SlpCtrl:
I installed and tried to write a program, and when I hit run it would say the project is not built yet, would you like to build? If I select yes, it does nothing. If I select build and run, it does nothing. I've uninstalled and reinstalled, nothing. I've never and still don't have this problem on my desktop, only on my laptop. Can anyone help me please?  :?

SlpCtrl:
Also, when I even make a new console project, it STILL won't build/compile or run at all even from that (I had searched and that was the advice that I seem to have found). I've used codeblocks a lot before; I know how to use the software, I think it's the version but I just for the life of me can not get anything to compile or run at all.  :shock:

MortenMacFly:
What version did you install, what platform, what OS? What's the exact error message in the build log? Did you forget to install a compiler after all? Is your compiler installation incomplete (e.g. you forgot to install G++ but only GCC)?

SlpCtrl:

--- Quote from: MortenMacFly on September 05, 2009, 09:31:16 pm ---What version did you install, what platform, what OS? What's the exact error message in the build log? Did you forget to install a compiler after all? Is your compiler installation incomplete (e.g. you forgot to install G++ but only GCC)?

--- End quote ---

 
When it's a single source file, it says nothing at all when I try to build. When it's a console project, it will say this:
 
"firstTry - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...

 
I just installed codeblocks, no compilers or debuggers; I've used code::blocks before, quite a bit actually as it was pretty much the only compiler I've used. And I've never had to install the compilers and debuggers seperately  :?. I'm confused here; but I'm explaining exactly what's happening; nothing.

SlpCtrl:
I fixed it; what I did was I went to settings>compiler and debugger
 
selected the toolchain executables tab
 
By default (from a fresh install) the version available right now has the default folder for MinGW WRONG. It has C:/MinGW, but the actual folder where it's installed to is C:\Program Files\CodeBlocks\MinGW (for windows). I just did an auto-detect and it corrected the problem, and voila; I can now build and run.

Navigation

[0] Message Index

[#] Next page

Go to full version