Trouble compiling tests standalone with cl

Dan Kegel daniel.r.kegel at gmail.com
Sun Oct 2 12:08:40 CDT 2005


On 10/2/05, Dan Kegel <daniel.r.kegel at gmail.com> wrote:
> To compile a test standalone, one should be able to do e.g.
>   cd dlls/msvcrt/tests
>   cl -DSTANDALONE -D_X86_ -I../../../include file.c

D'oh.  No, it's not quite that simple to build standalone with cl;
you have to avoid using wine's headers, like so:
     mkdir -p fauxinclude/wine
     ln -s ../../include/wine/test.h fauxinclude/wine
     cd dlls/msvcrt/tests
     cl -DSTANDALONE -D_X86_ -I../../../fauxinclude file.c
And that works fine.



More information about the wine-devel mailing list