* i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?
@ 2011-08-18 5:44 Frédéric Bron
2011-08-18 10:24 ` JonY
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Frédéric Bron @ 2011-08-18 5:44 UTC (permalink / raw)
To: cygwin
Using cygwin 1.7.9(0.237/5/3) 2011-03-29 10:10.
The following program:
#include <iostream>
int main() {
std::cout<<__MINGW32_MAJOR_VERSION<<'.'<<__MINGW32_MINOR_VERSION<<'\n';
return 0;
}
outputs:
- 3.18 when built with i686-pc-mingw32-g++
- 3.11 when built with i686-w64-mingw32-g++
why?
I have mingw-runtime version 3.18 installed. Is it used only by i686-pc-mingw32?
I found that:
$ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-pc-mingw32/
/usr/i686-pc-mingw32/sys-root/mingw/include/_mingw.h:#define
__MINGW32_MINOR_VERSION 18
and
$ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-w64-mingw32/
/usr/i686-w64-mingw32/sys-root/mingw/include/_mingw_mac.h:#define
__MINGW32_MINOR_VERSION 11
This seems to be one of the reasons that prevents me to use boost on cygwin 1.7.
Regards,
Frédéric
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?
2011-08-18 5:44 i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11? Frédéric Bron
@ 2011-08-18 10:24 ` JonY
2011-08-18 13:57 ` Frédéric Bron
2011-08-18 16:58 ` Yaakov (Cygwin/X)
2011-08-18 17:00 ` Yaakov (Cygwin/X)
2 siblings, 1 reply; 8+ messages in thread
From: JonY @ 2011-08-18 10:24 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]
On 8/18/2011 13:44, Frédéric Bron wrote:
> Using cygwin 1.7.9(0.237/5/3) 2011-03-29 10:10.
>
> The following program:
>
> #include <iostream>
> int main() {
> std::cout<<__MINGW32_MAJOR_VERSION<<'.'<<__MINGW32_MINOR_VERSION<<'\n';
> return 0;
> }
>
> outputs:
> - 3.18 when built with i686-pc-mingw32-g++
> - 3.11 when built with i686-w64-mingw32-g++
> why?
> I have mingw-runtime version 3.18 installed. Is it used only by i686-pc-mingw32?
>
> I found that:
> $ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-pc-mingw32/
> /usr/i686-pc-mingw32/sys-root/mingw/include/_mingw.h:#define
> __MINGW32_MINOR_VERSION 18
> and
> $ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-w64-mingw32/
> /usr/i686-w64-mingw32/sys-root/mingw/include/_mingw_mac.h:#define
> __MINGW32_MINOR_VERSION 11
>
> This seems to be one of the reasons that prevents me to use boost on cygwin 1.7.
>
> Regards,
>
> Frédéric
>
Just bump it up and see if there are any issues, the mingw-w64 toolchain
uses its own header set and the numbers don't always reflect mingw.org
releases, since the macros in there are mainly for compatibility.
You want to check instead for __MINGW64_VERSION_MAJOR on mingw-w64.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 196 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?
2011-08-18 10:24 ` JonY
@ 2011-08-18 13:57 ` Frédéric Bron
2011-08-18 14:24 ` JonY
0 siblings, 1 reply; 8+ messages in thread
From: Frédéric Bron @ 2011-08-18 13:57 UTC (permalink / raw)
To: cygwin
> Just bump it up and see if there are any issues, the mingw-w64 toolchain
> uses its own header set and the numbers don't always reflect mingw.org
> releases, since the macros in there are mainly for compatibility.
>
> You want to check instead for __MINGW64_VERSION_MAJOR on mingw-w64.
neither __MINGW64__, nor __MINGW64_VERSION_MAJOR are defined because
I am targetting win32, not win64, even if I use w64 compiler.
So this does not help.
Any other clue?
Frédéric
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?
2011-08-18 13:57 ` Frédéric Bron
@ 2011-08-18 14:24 ` JonY
0 siblings, 0 replies; 8+ messages in thread
From: JonY @ 2011-08-18 14:24 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
On 8/18/2011 21:56, Frédéric Bron wrote:
>> Just bump it up and see if there are any issues, the mingw-w64 toolchain
>> uses its own header set and the numbers don't always reflect mingw.org
>> releases, since the macros in there are mainly for compatibility.
>>
>> You want to check instead for __MINGW64_VERSION_MAJOR on mingw-w64.
>
> neither __MINGW64__, nor __MINGW64_VERSION_MAJOR are defined because
> I am targetting win32, not win64, even if I use w64 compiler.
> So this does not help.
> Any other clue?
>
> Frédéric
>
Its there when you include files like stdio.h, which eventually will
include _mingw_mac.h. Please do not the header directly if you value
platform portability.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 196 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?
2011-08-18 5:44 i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11? Frédéric Bron
2011-08-18 10:24 ` JonY
@ 2011-08-18 16:58 ` Yaakov (Cygwin/X)
2011-08-18 19:11 ` Frédéric Bron
2011-08-18 17:00 ` Yaakov (Cygwin/X)
2 siblings, 1 reply; 8+ messages in thread
From: Yaakov (Cygwin/X) @ 2011-08-18 16:58 UTC (permalink / raw)
To: cygwin
On Thu, 2011-08-18 at 07:44 +0200, Frédéric Bron wrote:
> Using cygwin 1.7.9(0.237/5/3) 2011-03-29 10:10.
>
> The following program:
>
> #include <iostream>
> int main() {
> std::cout<<__MINGW32_MAJOR_VERSION<<'.'<<__MINGW32_MINOR_VERSION<<'\n';
> return 0;
> }
>
> outputs:
> - 3.18 when built with i686-pc-mingw32-g++
> - 3.11 when built with i686-w64-mingw32-g++
> why?
> I have mingw-runtime version 3.18 installed. Is it used only by i686-pc-mingw32?
>
> I found that:
> $ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-pc-mingw32/
> /usr/i686-pc-mingw32/sys-root/mingw/include/_mingw.h:#define
> __MINGW32_MINOR_VERSION 18
> and
> $ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-w64-mingw32/
> /usr/i686-w64-mingw32/sys-root/mingw/include/_mingw_mac.h:#define
> __MINGW32_MINOR_VERSION 11
>
> This seems to be one of the reasons that prevents me to use boost on cygwin 1.7.
If you are using a mingw* compiler, then you're not "using" Boost on
Cygwin. If you really want to build with Boost on Cygwin, install
libboost-devel and its dependencies.
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?
2011-08-18 5:44 i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11? Frédéric Bron
2011-08-18 10:24 ` JonY
2011-08-18 16:58 ` Yaakov (Cygwin/X)
@ 2011-08-18 17:00 ` Yaakov (Cygwin/X)
2 siblings, 0 replies; 8+ messages in thread
From: Yaakov (Cygwin/X) @ 2011-08-18 17:00 UTC (permalink / raw)
To: cygwin
On Thu, 2011-08-18 at 07:44 +0200, Frédéric Bron wrote:
> Using cygwin 1.7.9(0.237/5/3) 2011-03-29 10:10.
>
> The following program:
>
> #include <iostream>
> int main() {
> std::cout<<__MINGW32_MAJOR_VERSION<<'.'<<__MINGW32_MINOR_VERSION<<'\n';
> return 0;
> }
>
> outputs:
> - 3.18 when built with i686-pc-mingw32-g++
> - 3.11 when built with i686-w64-mingw32-g++
> why?
> I have mingw-runtime version 3.18 installed. Is it used only by i686-pc-mingw32?
>
> I found that:
> $ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-pc-mingw32/
> /usr/i686-pc-mingw32/sys-root/mingw/include/_mingw.h:#define
> __MINGW32_MINOR_VERSION 18
> and
> $ grep -r "#define *__MINGW32_MINOR_VERSION" /usr/i686-w64-mingw32/
> /usr/i686-w64-mingw32/sys-root/mingw/include/_mingw_mac.h:#define
> __MINGW32_MINOR_VERSION 11
>
> This seems to be one of the reasons that prevents me to use boost on cygwin 1.7.
If you are using a mingw* compiler, then you're not "using" Boost on
Cygwin. If you really want to build with Boost on Cygwin, install
libboost-devel and its dependencies.
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?
2011-08-18 16:58 ` Yaakov (Cygwin/X)
@ 2011-08-18 19:11 ` Frédéric Bron
2011-08-18 22:40 ` JonY
0 siblings, 1 reply; 8+ messages in thread
From: Frédéric Bron @ 2011-08-18 19:11 UTC (permalink / raw)
To: cygwin
> If you are using a mingw* compiler, then you're not "using" Boost on
> Cygwin.
I am. Up to now, I have a dual cygwin installation 1.5/1.7 because I
was unable to use boost nor wxwidgets with 1.7.
I recently decided to make another effort to build boost with 1.7
because I feel that it will be difficult to maintain my build chain
based on cygwin 1.5.
I realized that there are 2 mingw32 compilers coming with cygwin 1.7:
i686-w64-mingw32 and i686-pc-mingw32.
I imagine that they correspond to:
- w64 ->http://mingw-w64.sourceforge.net/
- pc -> http://mingw.org/
I first tried to use the -w64- version with which I have troubles
building boost.
However, good news: I just finished building boost with the -pc-
version! I still have to build wxwidgets (currently running).
It would be nice to understand why the -w64- version does not work but
it seems to be beyond my competencies.
> If you really want to build with Boost on Cygwin, install
> libboost-devel and its dependencies.
This is an old version (1.43). I want to use the latest one (1.47)
Frédéric
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11?
2011-08-18 19:11 ` Frédéric Bron
@ 2011-08-18 22:40 ` JonY
0 siblings, 0 replies; 8+ messages in thread
From: JonY @ 2011-08-18 22:40 UTC (permalink / raw)
To: cygwin, mingw-w64-public
[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]
On 8/19/2011 03:10, Frédéric Bron wrote:
>> If you are using a mingw* compiler, then you're not "using" Boost on
>> Cygwin.
>
> I am. Up to now, I have a dual cygwin installation 1.5/1.7 because I
> was unable to use boost nor wxwidgets with 1.7.
> I recently decided to make another effort to build boost with 1.7
> because I feel that it will be difficult to maintain my build chain
> based on cygwin 1.5.
>
> I realized that there are 2 mingw32 compilers coming with cygwin 1.7:
> i686-w64-mingw32 and i686-pc-mingw32.
> I imagine that they correspond to:
> - w64 ->http://mingw-w64.sourceforge.net/
> - pc -> http://mingw.org/
>
> I first tried to use the -w64- version with which I have troubles
> building boost.
> However, good news: I just finished building boost with the -pc-
> version! I still have to build wxwidgets (currently running).
>
> It would be nice to understand why the -w64- version does not work but
> it seems to be beyond my competencies.
>
Adding mingw-w64-public list.
Care to share what went wrong?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 196 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-08-18 22:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-18 5:44 i686-XXX-mingw32 compilers and __MINGW32_MINOR_VERSION macro: 3.18 or 3.11? Frédéric Bron
2011-08-18 10:24 ` JonY
2011-08-18 13:57 ` Frédéric Bron
2011-08-18 14:24 ` JonY
2011-08-18 16:58 ` Yaakov (Cygwin/X)
2011-08-18 19:11 ` Frédéric Bron
2011-08-18 22:40 ` JonY
2011-08-18 17:00 ` Yaakov (Cygwin/X)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).