bestsource
bestsource copied to clipboard
Compilation fails on OSX
When compiling BestSource on OSX, compilation fails with the error
../subprojects/bestsource/src/videosource.h:187:17: error: implicit instantiation of undefined template 'std::basic_string<char>'
std::string Source;
^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iosfwd:239:32: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
^
In file included from ../subprojects/bestsource/src/videosource.cpp:21:
../subprojects/bestsource/src/videosource.h:188:17: error: implicit instantiation of undefined template 'std::basic_string<char>'
std::string CachePath;
^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iosfwd:239:32: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
^
In file included from ../subprojects/bestsource/src/videosource.cpp:21:
../subprojects/bestsource/src/videosource.h:189:17: error: implicit instantiation of undefined template 'std::basic_string<char>'
std::string HWDevice;
^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/iosfwd:239:32: note: template is declared here
class _LIBCPP_TEMPLATE_VIS basic_string;
(see here for a full log)
This is likely just because of a missing #include <string>
in videosource.h