Ошибка при связывании libvorbisfile.dylib в приложение Mac
-
26-09-2019 - |
Вопрос
Я работаю над программой, которая загружает звуки из файлов OGG Vorbis, но все, что я делаю, проект Xcode просто не хочет связать libvorbisfile.a в мою программу. Я продолжаю получать ссылки на ошибки:
"_ov_read", referenced from:
GSound::GSound(GWorld*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GSound.o
GSound::GSound(GWorld*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GSound.o
"_ov_clear", referenced from:
GSound::GSound(GWorld*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GSound.o
GSound::GSound(GWorld*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GSound.o
"_ov_info", referenced from:
GSound::GSound(GWorld*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GSound.o
GSound::GSound(GWorld*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GSound.o
"_ov_open", referenced from:
GSound::GSound(GWorld*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GSound.o
GSound::GSound(GWorld*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GSound.o
ld: symbol(s) not found
Решение
Я нашел проблему. Мне пришлось компилировать Vorbis в качестве рамки.
Не связан с StackOverflow