On Fri, Apr 30, 2010 at 3:24 PM, NightStrike <nightstrike@gmail.com> wrote:
On Mon, Apr 26, 2010 at 5:31 AM, Artifex Maximus <artifexor@gmail.com> wrote:
> Hello!
> I am searching an already built mingw environment for x86 and x86_64
> compiling. Similar to mingw+msys but for x86 and x86_64 within same
> environment. Is there any kind of that?
> I have downloaded cherokee web server building environment but that one is
> for x86 only and pretty old. I am upgraded and polished that environment for
> x86 (TDM binaries, upgrade some packages) and later converted for x86_64
> (same base but x86_64 compilers) but I would like to integrate into one
> environment which default compile to x86 and with some parameters I am able
> to compile for x86_64 in the same environment. I have no real experience in
> this field so I am looking for an already done package. Or if there is any
> nice tutorial on this topic it would be great to know. Thanks!
> I have tried compiling gcc myself but I always had errors about gmp even if
> I use the same parameters for configuration as in the mingw binaries (gcc
> -v).

What you are looking for is known as "multilib", ie a toolchain that
targets multiple platforms at the same time.  You choose your specific
target using a compiler switch.  For instance, you might want to do
gcc -m32 for a 32-bit platform, and gcc -m64 for 64.

Multilib doesn't work too well for windows targets, unfortunately.
Give it time.  In the meantime, you can just use relocatable
toolchains, put them in separate paths, put them both in your PATH,
and use the full triplet to run them.

Thank you very much I will look after that. As I recall there was a multilib option when I have tried compile gcc. But it seems that as I use now, in separate paths, is the recommended way at the moment.