I know there are plenty of "works fine for me" stories out there to
testify
to for wxWidgets but I'm having bizarre experience trying to link wxW and
need some ideas about how to debug this.
I was a happy camper running my mingw-w64-i686 program (GDL) via a command
console which is started by running msys64/usr/bin/bash.exe --login -i;
line edit and bash completion were performing things went well that way.
Call this the "cons" window (.vs. a "pty" window produced by starting
msys2_shell.bat).
GDL is basically a "console program" in that it starts out like any other
> int main(int argc, char *argv[])
> {
> if( atexit( AtExit) != 0) cerr << "atexit registration failed." << endl;
etc.,
e.g., some simple command-line argument checking and then it proceeds
to be an interpretive compiler. The user directs execution from a simple
command line which is affected by readline and ncurses. This is a
semi-asynchronous input - the program actively polls the command line
and integrates this into the event handling. Normally, though, it all
seems pretty
sequential.
Graphics windows can be created to make line drawings via plplot, and
this works as well on windows now as it does with Linux/xlib.
There are third-party libraries attached, the most relevant to the aspect
that is breaking down is readline/ncurses, plplot, and wxwidgets.
Only recently have I gotten the wxWidgets portion to function
on windows at all, its performance on linux using gtk is excellent. We are
using
the msw toolset.
Running from the mingw32/mintty terminal ("pty") the program is working
"fine" - with the usual deficit of tty- capabilities.
It works great in the "cons" window if the program is built without access
to wxwidgets but when wxwidgets is linked in, it fails at the very outset.
Before I can get a stderr message out.
stepping with gdb from a raw CMD.exe window gives same result as through
the window running /usr/bin/bash. This atexit() is in fact the mingw
atexit treatment and not the one programmed to be called as main's first
action.
(gdb) s
>
> 58 in
>> C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/atonexit.c
>
> (gdb) s
>
> 59 in
>> C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/atonexit.c
>
> (gdb) s
>
> 0x00bfe269 in main ()
>
> (gdb) s
>
> Single stepping until exit from function main,
>
> which has no line number information.
>
>
So, wxWidgets incorporation is horrendously broken even before it
has had a chance to execute. But not when it is begun from the pty
process!
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users