lmi
[Top][All Lists]
Advanced

[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 17:49:02 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0

On 2016-01-22 13:59, Greg Chicares wrote:
> On 2016-01-22 04:26, Greg Chicares wrote:
[...]
>>   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);

I realize I need to switch to cross gcc-4.9.x, but I'm so far along with
4.6 already that I wanted to try this first, as it is the last remaining
obstacle. It didn't work:

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:28:110: error: 
invoking macro WX_DEFINE_SORTED_USER_EXPORTED_TYPEARRAY argument 4: empty macro 
arguments are undefined in ISO C90 and ISO C++98

even though I certainly did change it:

/home/greg/build/lmi-msw[0]$grep PdfSorted 
/home/greg/msw/i686-w64-mingw32/include/wx/pdfarraytypes.h
//WX_DEFINE_SORTED_USER_EXPORTED_ARRAY_INT(int, wxPdfSortedArrayInt, 
WXDLLIMPEXP_PDFDOC);
WX_DEFINE_SORTED_USER_EXPORTED_ARRAY_INT(int, wxPdfSortedArrayInt, 
wxEMPTY_PARAMETER_VALUE WXDLLIMPEXP_PDFDOC);

I tried rerunning 'configure' with various '-std=' options added to
CXXFLAGS, just in case I might quickly find a magical answer; that
was fruitless. But I did see something that seems interesting enough
to mention--this error message:
  configure: error: Please configure wxWidgets using --enable-std_string.
appears with c++11, g++11, and g++03, but not with c++03.

Oh, and BTW, I keep seeing this when I configure lmi:
  configure: WARNING: using cross tools not prefixed with host triplet

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

Fixed 20160122T1530Z, revision 6489.




reply via email to

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