Setting up production environment

Hi there,

I’m running a Windows 8 Professional on a 64 bit machine and want to compile from source with Code blocks.

All dependencies installed as per Wiki. However upon compile I get the error

In pthread.h endif without if.

I can’t modify or make copy of pthread.h

What am I doing wrong?

Don’t care about the tiles build just want a running compilation and executable.

Please help with your knowledge.

I get something like this on linux 32bit too, compiling with gcc. I had to add -lpthread to the linker options to get it to work. Not sure if it’s the same problem but u can try.

I’m not sure how this would translate to codeblocks, but in the Makefile I had to add a space and then -lpthread to the end of line 131, so it looked like “LDFLAGS += $(PROFILE) -lpthread”

So I changed the Linker option.
Problem persists.

And Inline 131 there is written: DEFINES += - DCROSS_LINUX

The line you mentioned to add - lpthread to I did not find at all in the makefile.

When I try to edit the problematic pthread.h

It says:
File c:\program files\codeblocks\MjnGW\pthread.h could not be saved.

Could that be the problem, cause I have installed and tried both ways to compile CDDA.

Is there another way to fix it?

Just follow the instructions exactly. I’ve done this recently on a system similar to yours and it works fine.