QMutex 헤더를 포함하고 아래에 표시된대로 사용했습니다.QMutex가 알려지지 않은 이유는 무엇입니까?
error C2146: syntax error : missing > ';' before identifier > '_RecorderParamsMutex'
error C4430: missing type specifier - int assumed. > Note: C++ does not support default-int
error C4430: missing type specifier -> int assumed. Note: C++ does not > support default-int
#ifndef RECORDERinterface_h
#define RECORDERinterface_h
#include "qstring.h"
#include "ccc.h"
#include "ddd.h"
#include <qmutex.h>
#include "eee.h"
using namespace Common; //for aaaaa
class RecorderInterface{
//the implemented recorders are my friends, the may access all my private stuff :)
friend class A;
friend class B;
public:
RecorderInterface();
bool setParam(RecorderPrintParam *up);
private:
QMutex _RecorderParamsMutex;
};
#endif
질문에 답변하지 않지만 _RecorderParamsMutex (밑줄과 대문자로 시작하는 이름)는 C++ 구현을 위해 예약되어 있으므로 사용자 코드에서 이러한 이름을 만들 수 없습니다. –
그래, 고마워, 그 표준에 대한 링크가 있니? 그래서 나는 그 명명 표준을 자세히 살펴볼 수있다. – Christoferw
온라인에서 표준을 사용할 수 없으므로 비용을 지불해야합니다. 약 두드리는 초안이 있습니다. –