Compiling with VC++ 5.0

From: Martin Marier (marierm@MAGELLAN.UMontreal.CA)
Date: Mon Apr 03 2000 - 21:14:16 EDT


Hi list,

        I'm new to SAOL (slowly converting from Csound) and I'm havong problems
compiling the outputs of sfront when it has the -aout dsound flag. I know I
need to link my sa.o file with dxguid.lib and dsound.lib, but I'm always
getting these errors :
(These are on the command line, but I get same ones compiling in VC++ 's
GUI)

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

speedtrealtime.c
speedtrealtime.c(724) : error C2282: 'LPDIRECTSOUNDNOTIFY' is followed by
'lpDsNotify' (missing ','?)
speedtrealtime.c(726) : error C2143: syntax error : missing '{' before '*'
speedtrealtime.c(803) : warning C4029: declared formal parameter list
differentfrom definition
speedtrealtime.c(871) : error C2065: 'DSBCAPS_GLOBALFOCUS' : undeclared
identifier
speedtrealtime.c(872) : error C2065: 'DSBCAPS_CTRLPOSITIONNOTIFY' :
undeclared identifier
speedtrealtime.c(880) : error C2065: 'DSBPOSITIONNOTIFY' : undeclared
identifier
speedtrealtime.c(880) : error C2059: syntax error : ')'
speedtrealtime.c(886) : error C2224: left of '.dwOffset' must have
struct/uniontype
speedtrealtime.c(887) : error C2224: left of '.hEventNotify' must have
struct/union type
speedtrealtime.c(891) : error C2065: 'IID_IDirectSoundNotify' : undeclared
identifier
speedtrealtime.c(891) : warning C4133: 'function' : incompatible types -
from 'int *' to 'const struct _GUID *const '
speedtrealtime.c(891) : error C2065: 'lpDsNotify' : undeclared identifier
speedtrealtime.c(948) : warning C4047: 'function' : 'unsigned long ' differs
inlevels of indirection from 'void *'
speedtrealtime.c(948) : warning C4024: 'function through pointer' :
different types for formal and actual parameter 5
speedtrealtime.c(950) : warning C4047: 'function' : 'unsigned long ' differs
inlevels of indirection from 'void *'
speedtrealtime.c(950) : warning C4024: 'function through pointer' :
different types for formal and actual parameter 8

C:\audio\SAOL\sfront\examples\speedt>

I'm getting the same messages when I try using the /c option (compile
without linking).

Thanks alot for helping.

Martin Marier



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