Recompiling 32 bit C++ library to 64 bit

931 views Asked by At

I wanted to use the libtcod library. I'm running windows 8 64 bit and I use dev-c++.

Basically, the tutorial says that "if you are on a 64bit system you'll have to recompile the library, because the pre-compiled are only available for 32 bit systems". How do I do that? It does not explain that so I don't even know what I am supposed to do.

1

There are 1 answers

3
Johan On

Everything is explained in the documentation from the libtcod site...

Here is what to do:

In Mingw Shell, type :

hg clone https://bitbucket.org/jice/libtcod

Go in libtcod's main directory :

cd libtcod

And start the compilation :

make -f makefiles/makefile-mingw

The compilation make take a few seconds depending on your CPU speed. Once it's finished, compile the samples :

make -f makefiles/makefile-samples-mingw

Check that everything is ok by running the samples :

./samples_cpp