Witam, podczas kompilacji wywala mi następujący błąd, spowodowany dołączeniem biblioteki filesystem:
====================[ Build | Double_Fight | Debug ]============================
C:\Users\szytr\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\192.7142.39\bin\cmake\win\bin\cmake.exe --build D:\Projekty\Double-Fight\cmake-build-debug --target Double_Fight -- -j 6
[ 33%] Building CXX object CMakeFiles/Double_Fight.dir/src/App.cpp.obj
In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\filesystem:37,
from D:\Projekty\Double-Fight\src\App.cpp:5:
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\fs_path.h: In member function 'std::filesystem::__cxx11::path& std::filesystem::__cxx11::path::operator/=(const std::filesystem::__cxx11::path&)':
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\fs_path.h:237:47: error: no match for 'operator!=' (operand types are 'std::filesystem::__cxx11::path' and 'std::filesystem::__cxx11::path')
|| (__p.has_root_name() && __p.root_name() != root_name()))
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\iosfwd:40,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ios:38,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ostream:38,
from D:/Projekty/Double-Fight/include/SFML/System/Err.hpp:32,
from D:/Projekty/Double-Fight/include/SFML/System.hpp:34,
from D:/Projekty/Double-Fight/include/SFML/Window.hpp:32,
from D:/Projekty/Double-Fight/include/SFML/Graphics.hpp:32,
from D:\Projekty\Double-Fight\src\App.h:3,
from D:\Projekty\Double-Fight\src\App.cpp:1:
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\postypes.h:221:5: note: candidate: 'template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)'
operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
^~~~~~~~
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\postypes.h:221:5: note: template argument deduction/substitution failed:
In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\filesystem:37,
from D:\Projekty\Double-Fight\src\App.cpp:5:
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\fs_path.h:237:60: note: 'std::filesystem::__cxx11::path' is not derived from 'const std::fpos<_StateT>'
|| (__p.has_root_name() && __p.root_name() != root_name()))
^
In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_algobase.h:64,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\char_traits.h:39,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ios:40,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ostream:38,
from D:/Projekty/Double-Fight/include/SFML/System/Err.hpp:32,
from D:/Projekty/Double-Fight/include/SFML/System.hpp:34,
from D:/Projekty/Double-Fight/include/SFML/Window.hpp:32,
from D:/Projekty/Double-Fight/include/SFML/Graphics.hpp:32,
from D:\Projekty\Double-Fight\src\App.h:3,
from D:\Projekty\Double-Fight\src\App.cpp:1:
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_pair.h:456:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)'
operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^~~~~~~~
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_pair.h:456:5: note: template argument deduction/substitution failed:
In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\filesystem:37,
from D:\Projekty\Double-Fight\src\App.cpp:5:
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\fs_path.h:237:60: note: 'std::filesystem::__cxx11::path' is not derived from 'const std::pair<_T1, _T2>'
|| (__p.has_root_name() && __p.root_name() != root_name()))
^
In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_algobase.h:67,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\char_traits.h:39,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ios:40,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ostream:38,
from D:/Projekty/Double-Fight/include/SFML/System/Err.hpp:32,
from D:/Projekty/Double-Fight/include/SFML/System.hpp:34,
from D:/Projekty/Double-Fight/include/SFML/Window.hpp:32,
from D:/Projekty/Double-Fight/include/SFML/Graphics.hpp:32,
from D:\Projekty\Double-Fight\src\App.h:3,
from D:\Projekty\Double-Fight\src\App.cpp:1:
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_iterator.h:311:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)'
operator!=(const reverse_iterator<_Iterator>& __x,
^~~~~~~~
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_iterator.h:311:5: note: template argument deduction/substitution failed:
In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\filesystem:37,
from D:\Projekty\Double-Fight\src\App.cpp:5:
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\fs_path.h:237:60: note: 'std::filesystem::__cxx11::path' is not derived from 'const std::reverse_iterator<_Iterator>'
|| (__p.has_root_name() && __p.root_name() != root_name()))
^
In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_algobase.h:67,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\char_traits.h:39,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ios:40,
from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ostream:38,
from D:/Projekty/Double-Fight/include/SFML/System/Err.hpp:32,
from D:/Projekty/Double-Fight/include/SFML/System.hpp:34,
from D:/Projekty/Double-Fight/include/SFML/Window.hpp:32,
from D:/Projekty/Double-Fight/include/SFML/Graphics.hpp:32,
from D:\Projekty\Double-Fight\src\App.h:3,
from D:\Projekty\Double-Fight\src\App.cpp:1:
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_iterator.h:349:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)'
operator!=(const reverse_iterator<_IteratorL>& __x,
^~~~~~~~
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_iterator.h:349:5: note: template argument deduction/substitution failed:
In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\filesystem:37,
from D:\Projekty\Double-Fight\src\App.cpp:5:
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\fs_path.h:237:60: note: 'std::filesystem::__cxx11::path' is not derived from 'const std::reverse_iterator<_Iterator>'
|| (__p.has_root_name() && __p.root_name() != root_name()))
(Jest tego jeszcze więcej, ale jest limit długości posta)
Nie wiem co jest tego powodem. Dodam, że przy nowo stworzonym projekcie i załączeniu wyżej wymienionej biblioteki pojawia się ten sam problem.