Jump to content

Code Block Problems

RWT98
Go to solution Solved by Art Vandelay,

you need to add this to your system's path environment variable "C:\directory where mingw is installed\mingw\bin"

 

To modify path environment variable, if you don't know how, right click on computer >> properties >> advanced system settings >> environment variables. then find path in the system list and edit it.

so i been using code block and it was working fine then a little while ago it was acting weird when i was working on code in a class. i couldn't find the problem so i uninstalled it and re installed it now when i start it i get this that pops up on my screen.

 

 post-54059-0-91298800-1416803962.png

 

 

then when i try to run the default "hello world" program it doesn't open cmd and shows this at the bottom 

 

post-54059-0-34063000-1416804172.png

 

what is going on ? please someone help Thanks :)

Link to comment
Share on other sites

Link to post
Share on other sites

Did you install codeblocks with MingW (codeblocks-13.12mingw-setup.exe)? That sets everything up so you can basically open it up the first time and immediately start programming/compiling.

 

so i been using code block and it was working fine then a little while ago it was acting weird when i was working on code in a class. i couldn't find the problem so i uninstalled it and re installed it now when i start it i get this that pops up on my screen.

 

 attachicon.gifas.PNG

 

 

then when i try to run the default "hello world" program it doesn't open cmd and shows this at the bottom 

 

attachicon.gifcmd.PNG

 

what is going on ? please someone help Thanks :)

Link to comment
Share on other sites

Link to post
Share on other sites

Basically when you try to compile a program, it is looking for the path to the compiler executable. There are 2 codeblocks versions one with mingw and one without. You want the one with it because it installs it automatically and sets it up for you. You could download mingw by itself and then add it to the path manually but the other way is probably easier.

Link to comment
Share on other sites

Link to post
Share on other sites

you need to add this to your system's path environment variable "C:\directory where mingw is installed\mingw\bin"

 

To modify path environment variable, if you don't know how, right click on computer >> properties >> advanced system settings >> environment variables. then find path in the system list and edit it.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×