This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: g++ -m32 option causes an error
- From: Warren Young <warren at etr-usa dot com>
- To: Cygwin-L <cygwin at cygwin dot com>
- Date: Fri, 18 Oct 2013 16:50:29 -0600
- Subject: Re: g++ -m32 option causes an error
- Authentication-results: sourceware.org; auth=none
- References: <bug-58799-23798 at http dot gcc dot gnu dot org/bugzilla/> <bug-58799-23798-jpgPVpVU2B at http dot gcc dot gnu dot org/bugzilla/> <1382135640 dot 94420 dot YahooMailNeo at web181306 dot mail dot ne1 dot yahoo dot com> <1382135893 dot 8524 dot YahooMailNeo at web181304 dot mail dot ne1 dot yahoo dot com>
On 10/18/2013 16:38, Arthur Schwarz wrote:
No error occurs during compilation with i686-pc-mingw32-g++ (GCC) 4.7.3.
Why are you using both -m32 *and* a cross-compiler? If you're running
64-bit Cygwin and need to make a 32-bit Cygwin program, use the
cross-compiler. Passing -m32 to the 32-bit Cygwin compiler shouldn't be
necessary.
I wouldn't expect -m32 to work for Cygwin since it's not like other
64-bit *ixes where 32-bit programs are expected to work side-by-side
with 64-bit ones. So, while any problem in -m32 handling could
doubtless be fixed, there isn't a whole lot of incentive to do it.
Cross-compiling fits the two-separate-platforms nature of the situation
better.
--
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