using deimos.portaudio
Johannes Pfau
nospam at example.com
Fri May 18 23:26:56 PDT 2012
Am Sat, 19 May 2012 04:31:57 +0200
schrieb "Samuele Carcagno" <sam.carcagno at gmail.com>:
> Hi,
>
> I'm try to use the deimos portaudio bindings
>
> https://github.com/D-Programming-Deimos/portaudio
>
> I've managed to compile and run the test demo provided with the
> module.
> It seems to work fine. However, when I add this statement:
>
> PaStreamParameters outputParameters;
>
> that I need to specify the output parameters for using the
> Pa_OpenStream function, rather than the Pa_OpenDefaultStream
> function used in the example, I get the following linker error:
>
> dmd pa_test2.d -L-lportaudio
> pa_test2.o: In function `_Dmain':
> pa_test2.d:(.text._Dmain+0x22): undefined reference to
> `_D6deimos9portaudio18PaStreamParameters6__initZ'
> collect2: ld returned 1 exit status
> --- errorlevel 1
>
The missing symbol is a D symbol. You probably have to compile in
'deimos/portaudio.di', so in your 'dmd yourprogram.d' compile command
add the full path to the di file:
'dmd yourprogram.d ../path/to/deimos/portaudio.di'
More information about the Digitalmars-d-learn
mailing list