libspatialaudio icon indicating copy to clipboard operation
libspatialaudio copied to clipboard

Cannot compile simple code

Open mramalingam2203 opened this issue 3 years ago • 0 comments

I installed the library via ubuntu packages and it seems the header files need to be included in the compilation: g++ code.cpp -I/home/muthu/Documents/work/kickback/libspatialaudio/include -I/home/muthu/Documents/work/kickback/libspatialaudio/include/hrtf -I/home/muthu/Documents/work/kickback/libspatialaudio/source/kiss_fft -lspatialaudio

While some of the functions of the object could be linked some could not be. The error is like this: /usr/bin/ld: /tmp/ccQTjiik.o: in function main': code.cpp:(.text+0x115): undefined reference to CAmbisonicEncoder::SetPosition(PolarPoint, float)' /usr/bin/ld: code.cpp:(.text+0x182): undefined reference to `CAmbisonicDecoder::Configure(unsigned int, bool, unsigned int, int, unsigned int)'

May I know how it can be resolved?

collect2: error: ld returned 1 exit status

mramalingam2203 avatar Sep 15 '22 04:09 mramalingam2203