Re: problem of providing my own version of malloc/free by James
James
Tue Oct 11 18:59:25 CDT 2005
If a person needs to build 2 different ways, one approach is to split the
builds into 2 pieces, with a sources file for each, and each sources file
with appropriate include paths and other directives. This approach works
even when the builds are for a single driver: Build one piece as a .lib file
(eg, TARGETTYPE=DRIVER_LIBRARY) and have the other piece include that file
when the second piece is built.
--
James Antognini
Windows DDK and WDK Support
This posting is provided "AS IS" with no warranties, and confers no rights.
<ronghuazhang@gmail.com> wrote in message
news:1129069916.464716.199570@g14g2000cwa.googlegroups.com...
> Thanks for the reply. My case is a little complicated.
>
> The driver is compiled with another .c file, which includes stdlib.h
> and calls malloc/free. This .c file is shared by other parts of my
> project. It's also used by some user level applications. So changing it
> to remove the 'stdlib.h' inclusion is not an option (according to your
> reply, I think this header file is the cause for the warning). Is there
> other ways to get around this issue? Thanks again
>