Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile simple code #36

Open
mramalingam2203 opened this issue Sep 15, 2022 · 0 comments
Open

Cannot compile simple code #36

mramalingam2203 opened this issue Sep 15, 2022 · 0 comments

Comments

@mramalingam2203
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant