Re: [Mingw-w64-public] Debugging broken executable that does not even start

2014-04-03 Thread Damian Kaczmarek
2014-04-03 17:53 GMT+02:00 LRN : > No. > crtexe.c:332 is the call to main(). What happens if you put a > breakpoint on main()? > > Is dot.exe (at least) built with -g? -O0? Obviously, -g -O0 is much > easier to debug. > > The main was not being called but thanks to your insights I have disabled th

Re: [Mingw-w64-public] Debugging broken executable that does not even start

2014-04-03 Thread LRN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03.04.2014 19:41, Damian Kaczmarek wrote: > 2014-04-03 17:21 GMT+02:00 LRN : > >> What's the exit code of the program? Create a batch file (on >> Windows) with these two lines: >> > The exit code was invalid -257332231 or something. > > >> Or ju

Re: [Mingw-w64-public] Debugging broken executable that does not even start

2014-04-03 Thread Damian Kaczmarek
2014-04-03 17:21 GMT+02:00 LRN : > What's the exit code of the program? Create a batch file (on Windows) > with these two lines: > The exit code was invalid -257332231 or something. > Or just run under gdb. > $ gdb dot.exe GNU gdb (GDB) 7.6.1 Copyright (C) 2013 Free Software Foundation, Inc. Li

Re: [Mingw-w64-public] Debugging broken executable that does not even start

2014-04-03 Thread LRN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03.04.2014 18:04, Damian Kaczmarek wrote: > Dear MinGW users, I am struggling to compile Graphviz using > Mingw-64 (built using the MXE toolchain compiler, under Linux) with > a 32-bit variant. When I have finally managed to compile all > libraries

[Mingw-w64-public] Debugging broken executable that does not even start

2014-04-03 Thread Damian Kaczmarek
Dear MinGW users, I am struggling to compile Graphviz using Mingw-64 (built using the MXE toolchain compiler, under Linux) with a 32-bit variant. When I have finally managed to compile all libraries and linked to the final executable I find that the executable simply does not run when started with