D
D
Dobroe3lo2020-05-25 10:48:52
C++ / C#
Dobroe3lo, 2020-05-25 10:48:52

Using pulseaudio linux library?

How to use pulseaudio linux library? I want to compile file with connection

#include <pulse/simple.h>
#include <pulse/error.h>

Фатальная ошибка: pulse/simple.h: Нет такого файла или каталога #include <pulse/simple.h>

Indeed, pulse/simple.h and error.h are not, although pulseaudio installed and updated.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dobroe3lo, 2020-05-25
@Dobroe3lo

It seems to have solved the issue, but when compiling, the linker swears

main.cpp:(.text+0x1dd): undefined reference to `pa_simple_new'
main.cpp:(.text+0x1f7): undefined reference to `pa_strerror'
main.cpp:(.text+0x25f): undefined reference to `pa_simple_new'
main.cpp:(.text+0x279): undefined reference to `pa_strerror'
main.cpp:(.text+0x2b9): undefined reference to `pa_simple_read'
main.cpp:(.text+0x36f): undefined reference to `pa_simple_write'
main.cpp:(.text+0x380): undefined reference to `pa_strerror'
main.cpp:(.text+0x3df): undefined reference to `pa_simple_free'
main.cpp:(.text+0x3f2): undefined reference to `pa_simple_free'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question