Ошибка при связывании libvorbisfile.dylib в приложение Mac

StackOverflow https://stackoverflow.com/questions/2823745

  •  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 в качестве рамки.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top