News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

The 02 November 2007 build (4592) is out.

Started by killerbot, November 03, 2007, 01:34:42 PM

Previous topic - Next topic

TDragon

Nope, this is a bug in certain versions of windres. Wipe your 4.2.1 installation directory and reinstall with MinGW's binutils-2.17.50-20060824-1 package.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

doomleika

#16
Quote from: Mononofu on November 04, 2007, 02:20:49 PM
Quote from: doomleika on November 03, 2007, 07:26:50 PM
However, I mean when you "stepped into the scope" the watch still displays wrong number. i.e.when stepped on function "int lol()" call, it's wrong number, when stepped on ++k, it still wrong number, so does k =34; std::cout << k;.........well but the "cout" still produce the correct result. That's why I suspect the watch is broken in some way.....

Nah, it's not a bug. ^^
++k is resolved after the debugger stopped there, that's the reason why it shows the false number.
If you would put a breakpoint the line after, it should show correct output.

You'll find the same behaviour in Microsofts Visual Studio, if I remember right.
again, thx for reply.

Well, it doesn't. If you put a breakpoint at int main() or {, in MSVC 2005 EE, the locale watch doen't even show the variable k util you stepped in the scope, it will display the random number before the variable initialization statment, and after the initialization, it works fine. If you force put on a watch manually it will say "CXX0069: Error: variable needs stack frame" before the scope.

If it is not a "bug", at least the IDE should stop user putting a breakpoint at main() or {.

gd_on

Thanks TDragon.
I had effectively a bad windres version (though it was from a binutils-2.17.50 but not the same date !!!).
Now it's OK. It compiles and the dll runs with C::B. Just one thing, my dll is 2.7 MO bigger than the one provided by killerbot. May be, he has stripped it.

gd_on
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

ASJ

Many, MANY thanks for fixing the "always rebuild all" bug! The problem is gone now and it is saving me a lot of time!
Thanks! :D :D :D

pasgui


stahta01

Quote from: gd_on on November 04, 2007, 05:10:18 PM
Just one thing, my dll is 2.7 MO bigger than the one provided by killerbot. May be, he has stripped it.

Yes, he almost always strips the DLL.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]