Hi,
I just spent half a day tracing a problem that related to the definition
of _MT in config-win32-common.h. I was including some ace headers, but
building with the single threaded dll (by mistake). The deinition of _MT
while suing single threaded libraries leads to some very strange and hard
to debug problems,which I eventualyy tracked down by
commmenting/uncommenting everything in sight.
My question is, why is _MT defined at all, if someone is building with the
multithreaded libaries it is defined already, and if they are building
single threaded then it definitely should not be defined at all.
If ace can only be used with the multithreaded libraries then this should
be replaced with a #error, otherwise I think it should be omitted
altogether.
line 258 (ish)
#if !defined(_MT)
#define _MT //shouldn't this be a #error?
#endif
barney
/**********************************************************/
/ Barney Dalton /
/ Computer support sup...@mech.uwa.edu.au /
/ Personal email bar...@cyllene.uwa.edu.au /
/ Work Phone (61) (8) 93803058 or 93803051 /
/ Twist my arm : http://telerobot.mech.uwa.edu.au /
/**********************************************************/
> If ace can only be used with the multithreaded libraries then this should
> be replaced with a #error, otherwise I think it should be omitted
> altogether.
>
> line 258 (ish)
> #if !defined(_MT)
> #define _MT //shouldn't this be a #error?
> #endif
I've changed that as you suggested.
Thanks,
Nanbor