Help installing Code::Blocks

closed account (D80DSL3A)
I recently, finally replaced my 10 year old winXP pc!
I think that win8.1 is fine. I don't get the fuss bout it.
Really looking forward to learning new things. I can finally learn modern opengl, for example.
Maybe start using SFML 2.1, instead of 1.6 as I have been until now.

Embarrassing problem: I can't get code blocks to work despite several install attempts.
The project creation wizard will allow me to create an empty console project, but as soon as I try to add a .cpp file (ie. main.cpp) the program freezes and gives this error:
"Program can't start because zlib1.dll is missing from your computer.
Try re-installing this program to fix this problem".

As noted above, I have tried re-installing several times now.
I can't even write a "Hello World!" app at this time!

I have installed C::B release 13.12 rev 9501 (12/25/13) gcc 4.7.1 Windows/unicode-32bit

I also installed MinGw, using mingw-get version 0.6.2-beta 20131004-4.
MinGw is installed at C::\MinGw, as recommended.
Re-attempting installation, I see this note:
"After 1st time installation you should invoke the MinGW installation manager directly (either the CLI mingw.exe variant, or its GUI counterpart)..."
I see no "installation manager.exe" program anywhere though. Is this the problem?

HELP!
I'm not yet on windows 8.1 but have you tried downloading zlib1.dll and putting it in your C:\Windows\System32 ?
Also, code::blocks has another download(i think the third one) with a built in MingW compiler. Try that if the above one does not help. :)
Last edited on
This is a good MinGW build (by stl): http://nuwen.net/mingw.html

In the Code Blocks IDE, Settings=>Compiler=>Toolchain executables=>Compiler's installation directory, specify the top level directory into which MinGW was installed. eg C:\MinGW

This IDE is somewhat brain-dead, so it won't be able to find the compiler on its own.
Settings=>Compiler=>Toolchain executables=>, set
C compiler: gcc.exe
C++ compiler: g++.exe
Linker for dynamic libs: g++.exe
Make program: make.exe

And you should be ready to go.

Caveat (IIRC): threading model is win32; so no C++11 concurrency.
http://sourceforge.net/projects/mingw-w64/files/
http://sourceforge.net/projects/mingwbuilds/
Those allows you to select threading and exception model used.
Last edited on
i news member, i need help
If you need help, start a new topic (click on the 'new topic' button on the top right) and write your question there.
closed account (D80DSL3A)
Thanks everyone.
JLBorges, I followed your directions carefully and it worked. I'm coding again!
Thank you.
Topic archived. No new replies allowed.