[Top][All Lists]

[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:
| 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:

| 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

> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]