Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ace-users] why is _MT defined in config-win32-common.h

31 views
Skip to first unread message

Barney Dalton

unread,
Jun 2, 1998, 3:00:00 AM6/2/98
to

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 /
/**********************************************************/


Nanbor Wang

unread,
Jun 3, 1998, 3:00:00 AM6/3/98
to

Hi Barney,

> 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

0 new messages