NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc with helloworld for 64bit ?



On Wed, 9 May 2012 19:34:04 +0000 (UTC)
"S.P.Zeidler" <spz%serpens.de@localhost> wrote:

> You will need a cross-compiler not only for the different CPU
> architectures, but also for the different executable formats.
> Windows uses PE and NetBSD uses ELF.
> 
> Then, to link your program you need to grab the Windows libraries from
> somewhere, and need to have a linker that can deal with them.
> 
> It's in the realm of "certainly theoretically possible, but also certainly
> not the fastest and easiest way to get a program compiled for a Windows
> box".

I have in the past successfully used IMCROSS
(http://www.sandroid.org/imcross/) to do this. It's some time ago, so I
don't remember how much of an effort it was to get working, but I don't
remember the fight to have been particularly heroic. :)

> Should you decide to go forward with this, do tell of your heroic fight :)
>
> 
> regards,
>       spz
> -- 
> spz%serpens.de@localhost (S.P.Zeidler)


Home | Main Index | Thread Index | Old Index