Re: commit: reduce compile time dependencies


Subject: Re: commit: reduce compile time dependencies
From: Paul Rohr (paul@abisource.com)
Date: Mon Mar 19 2001 - 18:11:19 CST


At 05:04 AM 3/19/01 +0100, Mike Nordell wrote:
>minor cleaning:
> wp/ap/win/ap_Win32_App.cpp

Mike,

I'm getting a build failure (NT4, VC5, makefiles) with this change, as
follows:

-- snip --
ap_Win32App.cpp
c:\devstudio\vc\include\stdlib.h(421) : error C2059: syntax error : 'constant'
c:\devstudio\vc\include\stdlib.h(421) : error C2733: second C linkage of
overloa
ded function '_calloc_dbg' not allowed
c:\devstudio\vc\include\stdlib.h(424) : error C2059: syntax error : 'constant'
c:\devstudio\vc\include\stdlib.h(424) : error C2733: second C linkage of
overloa
ded function '_free_dbg' not allowed
c:\devstudio\vc\include\stdlib.h(439) : error C2059: syntax error : 'constant'
c:\devstudio\vc\include\stdlib.h(439) : error C2733: second C linkage of
overloa
ded function '_malloc_dbg' not allowed
c:\devstudio\vc\include\stdlib.h(447) : error C2059: syntax error : 'constant'
c:\devstudio\vc\include\stdlib.h(447) : error C2733: second C linkage of
overloa
ded function '_realloc_dbg' not allowed
-- snip --

If I comment out the WIN32_LEAN_AND_MEAN, it works just fine, which suggests
that we may need to reorder some includes here so the black magic in
ut_types.h to invoke the CRT debug heap tracker will work.

  http://www.abisource.com/lxr/source/abi/src/af/util/xp/ut_types.h#98

Here's what's stumping me -- from looking at my local copy of windows.h, I
can't see how that #define should be affecting the include order. More to
the point, why does this work for you and not for me?

Thanks,
Paul



This archive was generated by hypermail 2b25 : Mon Mar 19 2001 - 18:03:52 CST