Re: [Mingw-w64-public] Are win64 headers the same as win32 headers?

2010-01-20 Thread Zuxy Meng
Hi,

"Kai Tietz"  写入消息 
news:ofc6e14420.44e4a37d-onc12576b0.003eae4c-c12576b0.003ee...@onevision.de...
> JonY  wrote on 
> 19.01.2010 12:16:50:
>
>> On 1/19/2010 16:51, Ozkan Sezer wrote:
>> > On Tue, Jan 19, 2010 at 7:42 AM, Zuxy Meng wrote:
>> >> Hi,
>> >>
>> >> I wonder if the win32api headers from mingw32 can be used directly in
>> >> mingw64.
>> >
>> > No, they cannot.
>> >
>> >> If I have already a working msys+mingw32 env installed, can I just
>> >> copy binutils, gcc and libraries from mingw64 to have a working
> native
>> >> compilation env?
>> >> --
>>
>> To elaborate further, mingw-w64 comes with its own set of headers to
>> support win64 as a target.
>
> Correct, at least for 64-bit (and also for 32-bit as long as crt-headers
> and runtime aren't exchanged, too) there is no chance to use w32api
> headers at their current state.
>
>> If you are using it to target win32, you could reuse libs built by
>> mingw32, in theory. I have not tried this.
>
> For 32-bit you can use mingw.org build libraries and DLL binaries with
> mingw-w32, too. But you have to be aware that at some points (TLS handling
> for example) you will loose some features.
>

Thanks to everybody for your prompt responses! So I'd better regard mingw64 
as a replacement of instead of a complement to mingw32. But what about MSYS? 
Can I use 32 bit MSYS binaries with mingw64? My major interest is to port 
GNU programs to Win64 so a shell that supports configure etc is needed.

-- 
Zuxy 



--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Are win64 headers the same as win32 headers?

2010-01-20 Thread Kai Tietz
2010/1/20 Zuxy Meng :
> Hi,
>
> "Kai Tietz"  写入消息
> news:ofc6e14420.44e4a37d-onc12576b0.003eae4c-c12576b0.003ee...@onevision.de...
>> JonY  wrote on
>> 19.01.2010 12:16:50:
>>
>>> On 1/19/2010 16:51, Ozkan Sezer wrote:
>>> > On Tue, Jan 19, 2010 at 7:42 AM, Zuxy Meng wrote:
>>> >> Hi,
>>> >>
>>> >> I wonder if the win32api headers from mingw32 can be used directly in
>>> >> mingw64.
>>> >
>>> > No, they cannot.
>>> >
>>> >> If I have already a working msys+mingw32 env installed, can I just
>>> >> copy binutils, gcc and libraries from mingw64 to have a working
>> native
>>> >> compilation env?
>>> >> --
>>>
>>> To elaborate further, mingw-w64 comes with its own set of headers to
>>> support win64 as a target.
>>
>> Correct, at least for 64-bit (and also for 32-bit as long as crt-headers
>> and runtime aren't exchanged, too) there is no chance to use w32api
>> headers at their current state.
>>
>>> If you are using it to target win32, you could reuse libs built by
>>> mingw32, in theory. I have not tried this.
>>
>> For 32-bit you can use mingw.org build libraries and DLL binaries with
>> mingw-w32, too. But you have to be aware that at some points (TLS handling
>> for example) you will loose some features.
>>
>
> Thanks to everybody for your prompt responses! So I'd better regard mingw64
> as a replacement of instead of a complement to mingw32. But what about MSYS?
> Can I use 32 bit MSYS binaries with mingw64? My major interest is to port
> GNU programs to Win64 so a shell that supports configure etc is needed.

Zuxy,

you can use MSYS as build-environment. This works pretty well for some
doing this. In fact you can use also linux, cygwin, etc as
cross-compiling host for win64/win32 developlement. The advantage of
msys/cygwin is, that you can directly execute and test your
applications on a 64-bit host. For cygwin you are even able to run
testsuite for 64-bit windows. The later point is the reason why I
stick to cygwin as developement environment.

Kai



-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public