How to properly link libsndfile when compiling a standalone file using gcc
I’m using the libsndfile library for a signal processing project. I’m compiling c code using gcc on a WSL Ubuntu shell. I installed libsndfile-dev using sudo apt-get install libsndfile1-dev
, as well as built the cloned libsndfile repository following its instructions on GitHub. As a test, I’m attempting to run https://github.com/libsndfile/libsndfile/blob/master/examples/make_sine.c outside the repository (it successfully generated the WAV file when ran within) by including the apt-get installed version.