unterminated #ifndef 问题
/*
* CJob.h
*
* Created on: 2009-11-2
* Author: zhangjg
*/
#ifndef CJOB_H_
#define CJOB_H_
#include "CThread.h"
#include "CJobParam.h"
#include <unistd.h>
using namespace std;
namespace gateway {
class CJob {
private:
int m_JobNo; //The num was assigned to the job
char * m_JobName; //The job name
CThread *m_pWorkThread; //The thread associated with the job
CJobParam *param;
public:
CJob( void );
virtual ~CJob();
int GetJobNo(void) const { return m_JobNo; }
void SetJobNo(int jobno){ m_JobNo = jobno;}
char* GetJobName(void) const { return m_JobName; }
void SetJobName(char* jobname);
void free(char *m_JobName);
CThread *GetWorkThread(void){ return m_pWorkThread; }
void SetWorkThread(CThread * pWorkThread ){m_pWorkThread = pWorkThread;}
virtual void Run ( void *ptr ) = 0;
};
}
#endif /* CJOB_H_ */
编译时报“unterminated #ifndef”这样的错误,可是我的代码中有“#endif /* CJOB_H_ */”,不知道为什么,请各位给看一下