[wdmaudiodev] build utility and calling convention for user mode dlls

  • From: "Stephan Kappertz" <stephan@xxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 8 Oct 2003 19:10:27 +0200

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
...

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.de/

Other related posts:

  • » [wdmaudiodev] build utility and calling convention for user mode dlls