Help on installing mingw-w64

CodeLite installation/troubleshooting forum

Help on installing mingw-w64

Postby NoSoulX on Wed Feb 03, 2010 1: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?
NoSoulX
 
Posts: 1
Joined: Wed Feb 03, 2010 1:25 pm

Re: Help on installing mingw-w64

Postby eranif on Wed Feb 03, 2010 2: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
User avatar
eranif
Site Admin
 
Posts: 1876
Joined: Wed Feb 06, 2008 7:29 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron