[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW
From: |
Greg Chicares |
Subject: |
Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW |
Date: |
Fri, 22 Jan 2016 13:59:37 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
On 2016-01-22 04:26, Greg Chicares wrote:
[...]
> Here's how I installed the cross toolchain:
> apt-get install g++-mingw-w64-i686
> and let's see whether it's even remotely sane:
> i686-w64-mingw32-gcc -dumpversion
> 4.6
> Okay, this is debian-7, so it's an older gcc, and maybe I should
> get 4.9.1 from debian-8 instead; but '--enable-auto-import' worked
> with gcc-3.x, so I don't see how it can be unrecognized.
OTOH, this:
> cc1plus: error: unrecognized command line option "-Wno-unused-local-typedefs"
> [-Werror]
does seem legitimate because it was added in gcc-4.8:
https://gcc.gnu.org/gcc-4.8/porting_to.html
| The behavior of -Wall has changed and now includes the new warning flag
| -Wunused-local-typedefs
> CXX libskeleton_la-group_quote_pdf_gen_wx.lo
> In file included from
> /home/greg/msw/i686-w64-mingw32/include/wx/pdfdocument.h:25:0,
> from /home/greg/msw/i686-w64-mingw32/include/wx/pdfdc.h:21,
> from /home/greg/src/lmi/group_quote_pdf_gen_wx.cpp:57:
> /home/greg/msw/i686-w64-mingw32/include/wx/pdfarraytypes.h:27:86: error:
> invoking macro WX_DEFINE_SORTED_USER_EXPORTED_TYPEARRAY argument 4: empty
> macro arguments are undefined in ISO C90 and ISO C++98
I'll try this next:
http://lists.nongnu.org/archive/html/lmi/2015-12/msg00054.html
| GC> Is it not possible to patch that problem, e.g. by passing '/**/' as the
| GC> missing macro argument?
|
| It should be by using wxEMPTY_PARAMETER_VALUE which exists just for this
| purpose, i.e. writing
|
| WX_DEFINE_SORTED_USER_EXPORTED_ARRAY_INT(int, wxPdfSortedArrayInt,
| wxEMPTY_PARAMETER_VALUE WXDLLIMPEXP_PDFDOC);
> cc1plus: error: unrecognized command line option "-Wno-unused-local-typedefs"
> [-Werror]
> cc1plus: all warnings being treated as errors
> make[1]: *** [libskeleton_la-group_quote_pdf_gen_wx.lo] Error 1
> CXX libskeleton_la-skeleton.lo
> /home/greg/src/lmi/skeleton.cpp: In function 'std::string
> {anonymous}::redelimit_with_semicolons(const string&)':
> /home/greg/src/lmi/skeleton.cpp:889:37: error: variable 'i' set but not used
> [-Werror=unused-but-set-variable]
That looks like dead code; I'm looking into it.
Re: [lmi] Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/21
- Re: [lmi] Cross-compiling lmi from Linux to MSW, Vadim Zeitlin, 2016/01/21
- Re: [lmi] Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/21
- Re: [lmi] Cross-compiling lmi from Linux to MSW, Vadim Zeitlin, 2016/01/21
- Re: [lmi] Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/21
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW,
Greg Chicares <=
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/22
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Vadim Zeitlin, 2016/01/22
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/23
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Vadim Zeitlin, 2016/01/23
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/24
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/24
- Re: [lmi] [Bulk] Re: Cross-compiling lmi from Linux to MSW, Greg Chicares, 2016/01/24
- Re: [lmi] libtool and _putenv (was: Cross-compiling lmi from Linux to MSW), Vadim Zeitlin, 2016/01/25
- Re: [lmi] libtool and _putenv, Greg Chicares, 2016/01/25
- Re: [lmi] libtool and _putenv, Vadim Zeitlin, 2016/01/25