mackron / miniaudio

Audio playback and capture library written in C, in a single source file.
https://miniaud.io
Other
4.07k stars 361 forks source link

Undefined reference to symbol dlclose #492

Closed Haeri closed 2 years ago

Haeri commented 2 years ago

Hi there

Love the library. I am currently having an issue in the linking stage on linux (dynamic build) Here is the error I am getting:

/usr/bin/ld: CMakeFiles/platformer.dir/src/audio.cpp.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line

On Windows and macOS it seems to work fine: https://github.com/Haeri/ElementalDraw/runs/7113224025?check_suite_focus=true#step:6:52

Am I missing some sort of flags maybe?

Best regards, Haeri

mackron commented 2 years ago

You need to link with "dl": -ldl