RE: Compiling with VC++ 5.0

From: Martin Marier (marierm@MAGELLAN.UMontreal.CA)
Date: Wed Apr 05 2000 - 12:25:52 EDT


Hi,

        I installed the SDK's header files. My files are compiling now, but I
still have a problem linking my .obj file with the two .lib files.

I get this message :

C:\audio\SAOL\sfront\examples\beat>cl beatrt.c dxguid.lib dsound.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for 80x86
Copyright (C) Microsoft Corp 1984-1997. All rights reserved.

beatrt.c
beatrt.c(824) : warning C4029: declared formal parameter list different from
definition
beatrt.c(969) : warning C4047: 'function' : 'unsigned long ' differs in
levels of indirection from 'void *'
beatrt.c(969) : warning C4024: 'function through pointer' : different types
forformal and actual parameter 5
beatrt.c(971) : warning C4047: 'function' : 'unsigned long ' differs in
levels of indirection from 'void *'
beatrt.c(971) : warning C4024: 'function through pointer' : different types
for formal and actual parameter 8
Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
Copyright (C) Microsoft Corp 1992-1997. All rights reserved.

/out:beatrt.exe
beatrt.obj
dxguid.lib
dsound.lib
beatrt.obj : error LNK2001: unresolved external symbol
__imp__GetDesktopWindow@0
beatrt.obj : error LNK2001: unresolved external symbol
__imp__GetForegroundWindow@0
beatrt.exe : fatal error LNK1120: 2 unresolved externals

Can anyone help ?

Martin Marier

>Don't forget you also need the relevant new header files from the SDK -
>it's not enough just to install the runtime libraries. The struct
>DIRECTSOUNDNOTIFY is defined in one of the headers.
>
>Richard Dobson



This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 11:46:38 EST