构建C库 - 未定义的引用 - 出了什么问题?

时间:2014-11-06 21:42:58

标签: c android-ndk openal

我正在尝试构建一个c-library(OpenAL-MOB)。我正在使用Android NDK-build。 我收到以下错误,我不明白。有人能帮助我吗?

错误:

In function MixDirect_Hrtf_SUF
FIX:C:/Development/OpenAL-MOB-1.0.0/OpenAL-MOB-1.0.0/build_android//jni/../../Al
c/mixer_inc.c:116: error: undefined reference to 'ApplyCoeffsStep'

In function MixDirect_Hrtf_SUF
FIX:C:/Development/OpenAL-MOB-1.0.0/OpenAL-MOB-1.0.0/build_android//jni/../../Al
c/mixer_inc.c:136: error: undefined reference to 'ApplyCoeffs'
collect2: ld returned 1 exit status
make.exe: *** [C:/Development/OpenAL-MOB-1.0.0/OpenAL-MOB-1.0.0/build_android//o
bj/local/armeabi/libopenal.so] Error 1

Mixer_inc.c:

__inline void ApplyCoeffsStep(ALuint Offset, ALfloat (*RESTRICT Values)[2],
                                 const ALuint irSize,
                                 ALfloat (*RESTRICT Coeffs)[2],
                                 const ALfloat (*RESTRICT CoeffStep)[2],
                                 ALfloat left, ALfloat right);

__inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
                             const ALuint irSize,
                             ALfloat (*RESTRICT Coeffs)[2],
                             ALfloat left, ALfloat right);

void MixDirect_Hrtf(const DirectParams *params, const ALfloat *RESTRICT data, ALuint srcchan,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
{
    ...

    ApplyCoeffsStep(Offset, Values, IrSize, Coeffs, CoeffStep, left, right);

    ...

    ApplyCoeffs(Offset, Values, IrSize, Coeffs, left, right);

    ...
}

源代码:OpenAL-MOB source code

0 个答案:

没有答案