so I'm trying to write a program in Visual Studio (in C++) with use of libsndfile library, but I can't make it work. I have installed this library with vcpkg and when i try to run program from this site http://digitalsoundandmusic.com/5-3-3-reading-and-writing-formatted-audio-files-in-c/ I get 3 errors:
1>------ Build started: Project: ConsoleApplication4, Configuration: Debug Win32 ------
1>ConsoleApplication4.cpp
1>libsndfile.lib(flac.obj) : error LNK2001: unresolved external symbol _FLAC__StreamDecoderErrorStatusString
1>libsndfile.lib(flac.obj) : error LNK2001: unresolved external symbol _FLAC__StreamEncoderInitStatusString
1>C:\Users\asd\source\repos\ConsoleApplication4\Debug\ConsoleApplication4.exe : fatal error LNK1120: 2 unresolved externals
1>Done building project "ConsoleApplication4.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I tried also manually add this library but I had 68 errors similar to those above. Please, help me find solution. Thank you.