User forums > General (but related to Code::Blocks)

TDM-GCC 4.8 series (Latest: 4.8.1-tdm-2 - 2013-10-06)

<< < (4/9) > >>

stahta01:
To gd_on: I would just turn off the "-Wunused-local-typedefs" warning instead.

You way might be faster; but, that way is safer.

Tim S.

gd_on:
You are certainly right, but I did not know where to introduce this setting in C::B and more in wxWidget 2.8.12 generation.
And as I said, my solution is a hack, not THE solution :-\

gd_on

ollydbg:
Bug report about TDM-GCC 4.8.1 32bit dw2 version.

As you can see that I have report that wxWidgets's sample "excep" get crashed under TDM-GCC-dw2, to reproduce this bug, I create a minimal simple project.

The project have an exe and a dll, see attachment.

Case1: The exception can pass from dll to exe.
A() in exe call B() in dll
B() throw an exception, whether A() can catch the exception.
The result is:
TDM-GCC 4.8.1 32bit dw2  : OK
TDM-GCC 4.8.1 32bit sjlj : OK


Case2: The exception firstly pass from exe to dll, then dll to exe.
A() in exe call B() in dll
B() in dll call C() in exe
C() in exe throw an exception, whether A() can catch the exception.
TDM-GCC 4.8.1 32bit dw2    : Crash, showing a Runtime error dialog.
TDM-GCC 4.8.1 32bit sjlj   : OK
MinGW-Build 4.6.4 32bit dw2: OK


Please note that the crash also happens I try to add "-shared-libgcc -shared-libstdc++" options to TDM-GCC 4.8.1 dw2. MinGW-Build use the "-shared-libgcc -shared-libstdc++" as the default option.

The Case2 is just a simplified case of the wxWidgets excep sample.
Exe file is refer as the wx APP, the dll is refer as wx lib(dll).

EDIT:
mingw-builds x32-4.8.1-posix-dwarf-rev5 also works Ok in Case2.

ollydbg:

--- Quote from: stahta01 on September 30, 2013, 04:33:45 pm ---To gd_on: I would just turn off the "-Wunused-local-typedefs" warning instead.

You way might be faster; but, that way is safer.

Tim S.


--- End quote ---
I built wx2.8.12 lib by the command

--- Code: ---cd wxWidgets-2.8.12\build\msw
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release CXXFLAGS="-fno-keep-inline-dllexport" >log.txt 2>&1

--- End code ---
Then I got a log.txt file which have 111460 lines. (mostly of the lines are the warning messages like: ...warning: typedef 'wxDummyCheckInt' locally defined but not used [-Wunused-local-typedefs].....)
So, maybe, I need to use:

--- Code: ---cd wxWidgets-2.8.12\build\msw
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release CXXFLAGS="-fno-keep-inline-dllexport -Wno-unused-local-typedefs" >log.txt 2>&1

--- End code ---
to reduce the warnings, right?

TDragon:

--- Quote from: ollydbg on September 30, 2013, 04:56:26 pm ---Bug report about TDM-GCC 4.8.1 32bit dw2 version.

As you can see that I have report that wxWidgets's sample "excep" get crashed under TDM-GCC-dw2, to reproduce this bug, I create a minimal simple project.

--- End quote ---

I can confirm that this bug is specific to TDM-GCC. No ETA for a fix yet.

-John E. / TDM

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version