Nerijus Baliunas | 9 Sep 2009 17:09
Picon

compile error with wx svn

Hello,

.src/classes/MessageView.cpp: In member function 'bool MessageView::LaunchProcess(const String&,
const String&, const String&)':
.src/classes/MessageView.cpp:4040: warning: suggest explicit braces to avoid ambiguous 'else'
In file included from /a/M/wxWindows.29/wxWidgets/include/wx/vector.h:25,
                 from /a/M/wxWindows.29/wxWidgets/include/wx/html/htmlpars.h:20,
                 from /a/M/wxWindows.29/wxWidgets/include/wx/html/winpars.h:18,
                 from /a/M/wxWindows.29/wxWidgets/include/wx/html/htmlwin.h:20,
                 from /a/M/wxWindows.29/wxWidgets/include/wx/html/helpfrm.h:31,
                 from /a/M/wxWindows.29/wxWidgets/include/wx/html/helpctrl.h:20,
                 from /a/M/wxWindows.29/wxWidgets/include/wx/help.h:36,
                 from .src/../include/Mpch.h:29:
/a/M/wxWindows.29/wxWidgets/include/wx/scopeguard.h: In function 'void
wxPrivate::OnScopeExit(ScopeGuardImpl&) [with ScopeGuardImpl = wxScopeGuardImpl1<void
(*)(void**), void**≥]':
/a/M/wxWindows.29/wxWidgets/include/wx/scopeguard.h:177:   instantiated from
'wxScopeGuardImpl1<F, P1>::~wxScopeGuardImpl1() [with F = void (*)(void**), P1 = void**]'
.src/classes/MessageView.cpp:1796:   instantiated from here
/a/M/wxWindows.29/wxWidgets/include/wx/scopeguard.h:78: error: exception handling disabled, use
-fexceptions to enable
make[1]: *** [classes/MessageView.o] Error 1

Regards,
Nerijus

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
(Continue reading)

Vadim Zeitlin | 9 Sep 2009 17:35
Favicon

Re: compile error with wx svn

On Wed, 9 Sep 2009 18:09:12 +0300 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> /a/M/wxWindows.29/wxWidgets/include/wx/scopeguard.h: In function 'void
wxPrivate::OnScopeExit(ScopeGuardImpl&) [with ScopeGuardImpl = wxScopeGuardImpl1<void
(*)(void**), void**≥]':
NB> /a/M/wxWindows.29/wxWidgets/include/wx/scopeguard.h:177:   instantiated from
'wxScopeGuardImpl1<F, P1>::~wxScopeGuardImpl1() [with F = void (*)(void**), P1 = void**]'
NB> .src/classes/MessageView.cpp:1796:   instantiated from here
NB> /a/M/wxWindows.29/wxWidgets/include/wx/scopeguard.h:78: error: exception handling disabled,
use -fexceptions to enable
NB> make[1]: *** [classes/MessageView.o] Error 1

 I guess you need to compile wx with --disable-exceptions if you do it for
M. It would be nice if we could override wxUSE_EXCEPTIONS before including
wx headers but I don't think this works currently.

 The simplest would be to stop using -fno_exceptipns when building M, of
course...
VZ
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mahogany-Developers mailing list
Mahogany-Developers <at> lists.sourceforge.net
(Continue reading)

Nerijus Baliunas | 9 Sep 2009 19:45
Picon

Re: compile error with wx svn

On Wed, 9 Sep 2009 17:35:14 +0200 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:

VZ>  The simplest would be to stop using -fno_exceptipns when building M, of
VZ> course...

Should I commit disabling -fno-exceptions (it helped to compile) or should
we wait until we can override wxUSE_EXCEPTIONS?

Regards,
Nerijus

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

Gmane