build utility and calling convention for user mode dlls

Discussion in 'Windows Vista Drivers' started by Stephan Kappertz, Oct 8, 2003.

  1. Hello group,

    I'm trying to compile an user mode dll using the build utility and a sources
    file. It builds successfully but the calling convention is __stdcall by
    default. I need to change this to __cdecl. I tried the USER_C_FLAGS macro as
    shown below. However, this results in a compiler error "/Gz and /Gd
    command-line options are incompatible"... Any thoughts how to do it right?

    Thanks,
    Stephan

    sources file:
    .....
    USE_MAPSYM=1
    USE_MSVCRT=1
    UMTYPE=windows

    SYNCHRONIZE_BLOCK=1

    C_DEFINES= $(C_DEFINES) /DWIN32 /DNDEBUG /D_WINDOWS

    MSC_WARNING_LEVEL=/W3 /WX

    USER_C_FLAGS= /Gd /MT
    ....
     
    Stephan Kappertz, Oct 8, 2003
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.