I\'m getting strange undefined references at link time for Android::Mutex and Android::AudioTrack used by a project I have taken over.
Does anyone have any ideas? There
Well these are some strange errors... It looks like every time you reference something from the android::Mutex or the android::AudioTrack libraries the linker is unable to find those functions. All I can say is that since those libraries are not part of the android standard library, make sure you have them in your build path, otherwise best of luck.
This plagued me as well - but I finally resolved it by linking with Bionic's header (bionic/libc/include
), and - the important part - #define
'ing HAVE_PTHREADS
(i.e. add LOCAL_CFLAGS += HAVE_PTHREADS
).