2
Sun Studio 컴파일러를 사용하는 Solaris에 문제가 있습니다. libCstd와 관련이있는 것 같습니다.Solaris CC를 사용하는 std :: BinaryPredicate 관련 문제
"uniq.cpp", line 6: Error: Could not find a match for std::list<double>::unique(bool(double,double)) needed in main().
하지만 대신 값의 참조를 사용하는 경우, 그것은 잘 컴파일 :
#include <list>
static bool f(double fFreq1, double fFreq2) { return false; }
int main()
{
std::list<double> l;
l.unique(f);
}
내가 오류 메시지는 다음과 같습니다
#include <list>
static bool f(const double& fFreq1, const double& fFreq2) { return false; }
int main()
{
std::list<double> l;
l.unique(f);
}
다음 코드를 고려
컴파일은 g ++를 사용하는 것이 좋습니다. 아무도 무슨 일이 일어나고 있는지 알고 있습니까? 감사 !
아마도 라이브러리 구현에 오류가 있습니다. 목록 헤더에서 관련 부분을 찾을 수 있습니까? –
아쉽게도 헤더 파일을 찾을 수 없습니다. – ghi
'grep -rH searchTerm/usr/include'와 같은 것은 어떨까요? –