Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > STL in debug mode?

Reply
Thread Tools

STL in debug mode?

 
 
Matthias
Guest
Posts: n/a
 
      01-31-2005
Hi,

I have just read in another thread (didn't want to hijack it) that STL
containers may operate more safe in "debug builds". Are we talking about
a debug build when the _DEBUG flag is set (on gcc)? I have grep'ed for
_DEBUG in all files of my STL implementation but couldn't come up with
anything.
How do I enable the STL to work in debug mode?

I am using the GNU C++ implementation, gcc 3.4.3.
 
Reply With Quote
 
 
 
 
Ivan Vecerina
Guest
Posts: n/a
 
      01-31-2005
"Matthias" <> wrote in message
news:ctkuqi$kuu$03$...
> I have just read in another thread (didn't want to hijack it) that STL
> containers may operate more safe in "debug builds". Are we talking about a
> debug build when the _DEBUG flag is set (on gcc)?

This is an implementation-specific feature. It will typically require
compiling (your application, and eventually library files) with a specific
macro defined.
STLport (www.stlport.org) had pioneered the implementation of such a
debug mode, with extensive range checking, validation of all iterators
and ranges, etc. It can be used with a wide range of compilers.

> I have grep'ed for _DEBUG in all files of my STL implementation but
> couldn't come up with anything.
> How do I enable the STL to work in debug mode?


I think some vendors/platforms have started to include functionality
similar to that of STLport. But I don't know about gcc.
You probably should ask about its status on a platform-specific forum...

Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
netvmini.sys still not working on Windows 7 even after driver signing disabled ?! (Windows debug mode necessary for debug drivers ???) Skybuck Flying Windows 64bit 3 08-09-2009 05:54 AM
debug="false" in web.config and <%@ debug="true" ...%> in aspx file => true or false? André ASP .Net 3 08-28-2006 12:02 PM
Config Mgr Debug/Release and Web.config Compilation debug=true RonL ASP .Net 0 04-08-2006 03:50 PM
Debug (DLL MFC) -> Debug (Static MFC) ringos75 C++ 0 04-14-2005 01:50 PM
[Howto] Compiling debug Python extensions for non-debug Python Mike C. Fletcher Python 3 10-12-2003 09:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57