patch for STLport debug libs without stldebug-mode

Hi! I discovered to my dismay that the boost_thread lib that uses STLport uses STLport's special debug mode. I therefore prepared a patch (against 1.31.0) that renames the current 'debug' target to 'stldebug' and adds a new 'debug' target that only uses the normal debug version of STLport. There are a few issues to discuss though: - I'm no expert of the build-system, not even an adept. I just tried to understand what's going on and tried until it seemed to work. It is a little tested on MSVC6. - I have no idea why the special debug-mode was introduced as default in the first place, I haven't found anything that tells why. - I found a note in one of the bbuild v2 files (which I did neither use nor patch) saying that 'normal debug' is not supported. Again, why and why isn't that stated in the notes for the *-stlport toolsets? - regex(IIRC) uses a 'd' in the resulting lib to mark debug libs and 'dd' to mark libs with special debug modes like STLport's. I adapted this naming convention when making the patch. In case anyone wonders, I work in an environment where I just don't have the extra time for STLport's debug mode. any comments welcome Ulrich Eckhardt

I discovered to my dismay that the boost_thread lib that uses STLport uses STLport's special debug mode. I therefore prepared a patch (against 1.31.0) that renames the current 'debug' target to 'stldebug' and adds a new 'debug' target that only uses the normal debug version of STLport.
There are a few issues to discuss though: - I'm no expert of the build-system, not even an adept. I just tried to understand what's going on and tried until it seemed to work. It is a little tested on MSVC6. - I have no idea why the special debug-mode was introduced as default in the first place, I haven't found anything that tells why. - I found a note in one of the bbuild v2 files (which I did neither use nor patch) saying that 'normal debug' is not supported. Again, why and why isn't that stated in the notes for the *-stlport toolsets? - regex(IIRC) uses a 'd' in the resulting lib to mark debug libs and 'dd' to mark libs with special debug modes like STLport's. I adapted this naming convention when making the patch.
In case anyone wonders, I work in an environment where I just don't have
regex now uses the same convensions as Boost.Build, there is no longer a debug build that doesn't use the STLPort debug mode. the
extra time for STLport's debug mode.
No extra time required, just define __STL_DEBUG, it's defined by default for Boost+STLPort because it catches coding errors that otherwise can slip through. John.

On Monday 22 March 2004 13:20, John Maddock wrote:
there is no longer a debug build that doesn't use the STLPort debug mode.
Hmmm, good to know. However, I still wonder what are the reasons for that. Can you give me a pointer to the relevant discussions (assuming they did take place on this list)?
In case anyone wonders, I work in an environment where I just don't have the extra time for STLport's debug mode.
No extra time required, just define __STL_DEBUG, it's defined by default for Boost+STLPort because it catches coding errors that otherwise can slip through.
Sorry, my bad. It's the time at runtime which I don't have. Else, I do use the mode already and find it great, but it slows down things a lot. cheers Uli
participants (2)
-
John Maddock
-
Ulrich Eckhardt