Help on installing mingw-w64

CodeLite installation/troubleshooting forum
NoSoulX
CodeLite Curious
Posts: 1
Joined: Wed Feb 03, 2010 3:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Help on installing mingw-w64

Post by NoSoulX » Wed Feb 03, 2010 3:29 pm

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?

User avatar
eranif
CodeLite Plugin
Posts: 5995
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help on installing mingw-w64

Post by eranif » Wed Feb 03, 2010 4:09 pm

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
Make sure you have read the HOW TO POST thread

Post Reply