bestsource icon indicating copy to clipboard operation
bestsource copied to clipboard

Compilation fails on OSX

Open arch1t3cht opened this issue 1 year ago • 0 comments

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

arch1t3cht avatar Aug 16 '22 22:08 arch1t3cht