On Fri, Jul 19, 2013 at 3:34 PM, Paul K <paulclin...@yahoo.com> wrote:
> Hi John,
>
> I tried to compile the current trunk on Windows using mingw and ran
> into a compilation error:
>
> ...wxLua/modules/wxbind/src/wxcore_bind.cpp: In member function
> 'virtual bool wxLuaBinding_wxcore::RegisterBinding(const
> wxLuaState&)':
> ...wxlua/wxLua/modules/wxbind/src/wxcore_bind.cpp:7495:46: error:
> 'wxEVT_COMMAND_DIRPICKER_CHANGED' was not declared in this scope
> ...wxLua/modules/wxbind/src/wxcore_bind.cpp:7496:46: error:
> 'wxEVT_COMMAND_FILEPICKER_CHANGED' was not declared in this scope
>
> This follows a warning about re-definition:
>
> ...wxLua/modules/wxbind/src/wxcore_bind.cpp:73:0: warning:
> "wxEVT_COMMAND_DIRPICKER_CHANGED" redefined [enabled by default]
> ...include/wx-2.9/wx/filepicker.h:418:0: note: this is the location of
> the previous definition
> ...wxLua/modules/wxbind/src/wxcore_bind.cpp:74:0: warning:
> "wxEVT_COMMAND_FILEPICKER_CHANGED" redefined [enabled by default]
> ...include/wx-2.9/wx/filepicker.h:417:0: note: this is the location of
> the previous definition
>
> The issue seems to be caused by this #if in
> modules/wxbind/src/wxcore_bind.cpp:
>
> #if defined(__MINGW32__) || defined(__GNUWIN32__)
> // FIX: "internal compiler error: output_operand: invalid
> expression as operand"
>
> I'm not sure if the comment still applies, but I removed this #if (and
> another one around line 7488 in the same file) and compiled without
> any errors/issues.
>
>
When you say remove the #if you mean just the #if statement or all of the
code in the #if statement. As you can tell that is a strange hack for that
compiler and I wish I documented the version.
> Can you please take a look at this and check if this #if is still
> needed? It's seems like you can safely remove it. Thank you.
>
>
> I'm using the latest wxwidgets (2.9.5 release candidate) and gcc 4.6.2.
>
>
What gcc are you using? MingW as per these directions or something else and
from where and why?
http://wxlua.sourceforge.net/docs/install.html#C2.4
http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/
The
mingw-get-inst-20120426<http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20120426/>is
gcc 4.7.0 and I do believe that that #if is needed for that compiler.
Regards,
John
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users