> -----Original Message-----
> From: Sinisa Milivojevic [mailto:[EMAIL PROTECTED]] 
> Sent: 26 October 2001 13:46
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Memory allocators / STL
> 
> 
> [EMAIL PROTECTED] writes:
> > Do you know if this is the case even with the GCC v3.0.1? 
> What is the 
> > "recommended" combination of compiler / STL implementation 
> in order to 
> > work properly with MySQL client?
> > 
> > Thanks!
> > 
> > /Stefan
> > 
> 
> 
> Yes, it is as I use the same compiler.
> 
> MySQL client can be used with plethora of compilers. Of the 
> GNU family, any from 2.95 or 3.* series will be just fine.
> 
> Regarding STL, it MUST be the one that came with the 
> corresponding compiler version. Mixing GNU compiler versions 
> with libstdc+ from some other version leads straight to 
> catastrophe ...
> 

(IMO) The best STL library is currently STLPort (www.stlport.org), as it
is fast, has STL debugging and container range checking mode (wich is
allmost a must-have), it is open source, it is thread- and exception
safe, and best of all - it is cross-platform. We use it on Windows
(Visual C++), FreeBSD and Linux ( G++ 2.95.x ). It is so much better
compared to the libstdc++ that comes with gcc.

We have absolutely no problems mixing threads and exceptions on the
platforms mentioned above on a cross-platform project well over 100K
lines of C++.  

I don't know if it works with the standard mysql++, as we use an
internal mysql++ clone. 

Regards, 

Sander

PS. For threads with C++ you should check out the QPThread library. It
greatly simplifies thread programming under C++, and provides
synchronisation entities like mutexes, RWLocks, semaphores, but also
thread-safe stacks, pools of threads, etc. I'm *SO* glad we decided to
use that library, as it made our life a whole lot easier. It is also
cross-platform. (Meaning that combined with STLPort it makes writing
cross-platform multithreaded C++ applications a walk in the park.)

http://lin.fsid.cvut.cz/~kra/index.html#QpThread

For the record - I am in no way affiliated with these projects. They are
just tools that made our life a lot easier.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to