
On 7/26/06, Michael van der Westhuizen <r1mikey@gmail.com> wrote:
Hi Torsten,
[snipped]
ACE requires you to use multithreading in most cases. I seriously doubt that this will be seen as a bug by anybody you've reported to, as this is just how ACE works.
I believe it should be reported as a bug to ACE. The ACE library should emit an error if _REENTRANT is not defined, not define it. As we can see it can lead to serious ODR violations, with part of the headers being preprocessed with and without _REENTRANT.
In this case, sp_counted_base is doing the right thing, as it sees that it needs to be threadsafe.
I would strongly recommend that you ensure that you use the same compilation flags and defines to build your software as you did when building ACE, otherwise you may just end up with different versions of the same class all over the place.
ditto.
Michael
best regards, -- Felipe Magno de Almeida