Hi,
I followed the advice from another thread to install the direct sound sdk in order to be able to compile Juce using Visual Express C++ 2005, but that didn’t help me much!
I’ve set the linker and library path as such (which I believe is correct):
For include:
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Include
For Library:
C:\Program Files\Microsoft DirectX 9.0 SDK (October 2005)\Lib\x86
but when compiling I get lots of errors:
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(101) : error C2065: ‘DSERR_NOINTERFACE’ : undeclared identifier
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(101) : error C2051: case expression not constant
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(227) : error C3861: ‘DirectSoundCaptureEnumerate’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(280) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(280) : error C2227: left of ‘->Stop’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(287) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(287) : error C2227: left of ‘->Release’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(299) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSound’
c:\program files\microsoft platform sdk\include\dsound.h(74) : see declaration of 'IDirectSound’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(299) : error C2227: left of ‘->Release’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(336) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSound’
c:\program files\microsoft platform sdk\include\dsound.h(74) : see declaration of 'IDirectSound’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(336) : error C2227: left of ‘->SetCooperativeLevel’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(351) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSound’
c:\program files\microsoft platform sdk\include\dsound.h(74) : see declaration of 'IDirectSound’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(351) : error C2227: left of ‘->CreateSoundBuffer’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(367) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(367) : error C2227: left of ‘->SetFormat’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(375) : error C2065: ‘DSBCAPS_GLOBALFOCUS’ : undeclared identifier
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(379) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSound’
c:\program files\microsoft platform sdk\include\dsound.h(74) : see declaration of 'IDirectSound’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(379) : error C2227: left of ‘->CreateSoundBuffer’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(389) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(389) : error C2227: left of ‘->Lock’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(397) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(397) : error C2227: left of ‘->Unlock’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(401) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(401) : error C2227: left of ‘->SetCurrentPosition’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(405) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(405) : error C2227: left of ‘->Play’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(428) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(428) : error C2227: left of ‘->GetCurrentPosition’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(434) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(434) : error C2227: left of ‘->GetCurrentPosition’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(465) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(465) : error C2227: left of ‘->Lock’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(598) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSoundBuffer’
c:\program files\microsoft platform sdk\include\dsound.h(104) : see declaration of 'IDirectSoundBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(598) : error C2227: left of ‘->Unlock’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(626) : error C2146: syntax error : missing ‘;’ before identifier 'pDirectSoundCapture’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(626) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(626) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(627) : error C2146: syntax error : missing ‘;’ before identifier 'pInputBuffer’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(627) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(627) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(649) : error C2614: ‘juce::DSoundInternalInChannel’ : illegal member initialization: ‘pInputBuffer’ is not a base or member
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(649) : error C2614: ‘juce::DSoundInternalInChannel’ : illegal member initialization: ‘pDirectSoundCapture’ is not a base or member
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(661) : error C2065: ‘pInputBuffer’ : undeclared identifier
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(666) : error C3861: ‘IDirectSoundCaptureBuffer_Stop’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(673) : error C3861: ‘IDirectSoundCaptureBuffer_Release’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(681) : error C2065: ‘pDirectSoundCapture’ : undeclared identifier
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(685) : error C3861: ‘IDirectSoundCapture_Release’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(697) : error C2039: ‘lpVtbl’ : is not a member of 'IDirectSound’
c:\program files\microsoft platform sdk\include\dsound.h(74) : see declaration of 'IDirectSound’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(697) : error C2227: left of ‘->Release’ must point to class/struct/union/generic type
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(726) : error C3861: ‘DirectSoundCaptureCreate’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(744) : error C2065: ‘DSCBUFFERDESC’ : undeclared identifier
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(744) : error C2146: syntax error : missing ‘;’ before identifier 'captureDesc’
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(744) : error C2065: ‘captureDesc’ : undeclared identifier
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(745) : error C2070: ‘‘unknown-type’’: illegal sizeof operand
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(746) : error C2228: left of ‘.dwSize’ must have class/struct/union
type is '‘unknown-type’'
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(746) : error C2070: ‘‘unknown-type’’: illegal sizeof operand
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(747) : error C2228: left of ‘.dwFlags’ must have class/struct/union
type is '‘unknown-type’'
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(748) : error C2228: left of ‘.dwBufferBytes’ must have class/struct/union
type is '‘unknown-type’'
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(749) : error C2228: left of ‘.lpwfxFormat’ must have class/struct/union
type is '‘unknown-type’'
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(752) : error C3861: ‘IDirectSoundCapture_CreateCaptureBuffer’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(760) : error C2065: ‘DSCBSTART_LOOPING’ : undeclared identifier
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(760) : error C3861: ‘IDirectSoundCaptureBuffer_Start’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(778) : error C3861: ‘IDirectSoundCaptureBuffer_GetCurrentPosition’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(784) : error C3861: ‘IDirectSoundCaptureBuffer_GetCurrentPosition’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(801) : error C3861: ‘IDirectSoundCaptureBuffer_Lock’: identifier not found
c:\documents and settings\str_tks\my documents\vstdevel\juce\build\win32\platform_specific_code\juce_win32_directsound.cpp(876) : error C3861: ‘IDirectSoundCaptureBuffer_Unlock’: identifier not found
Build log was saved at "file://c:\Documents and Settings\str_tks\My Documents\VstDevel\juce\bin\intermediate_win32\staticdebug\BuildLog.htm"
JUCE - 66 error(s), 0 warning(s)
I’m sorry to make all the noise but I need help - can you please tell me how to solve the problem?!
Hope to hear from you
Thomas