Page 1 of 1

Help on installing mingw-w64

Posted: Wed Feb 03, 2010 3:29 pm
by NoSoulX
At the moment I'm interested on using mingw-w64. The problem at the moment is that the cross compile doesn't work so the compiling has to be done on 32- and 64-bit version separately.
How do I set up these on CodeLite?

Re: Help on installing mingw-w64

Posted: Wed Feb 03, 2010 4:09 pm
by eranif
There are several ways to achieve this:
- If the tool names are the same, you could simply define the environment variable PATH to point to the toolchain you like
- If the tools are the different, I would define two environment variables sets:
MinGW64
MinGW32

For each set, define the tools, like:
MINGW_MAKE=mingw32-make
MINGW_GCC=gcc
MINGW_GPP=g++

Now, replace the string literals from the following locations:

'settings -> build settings -> compilers' select the 'Tools' entry of your compiler
'settings -> build settings -> build system'

For example, replace g++ to $(MINGW_GPP)

You can now choose to use different environment variables set to switch between the toolchains
Eran