|
出差在外地,在写一篇关于ace的blog
其中在一个类中用到了以下语句:
protected:
ACE_Message_Queue<ACE_NULL_SYNCH> output_info;
可在编译的过程中一至提示如下错误:
c:\ace_wrappers\ace\message_queue_t.h(586) : error C2079: 'lock_' uses undefined class 'ACE_Null_Mutex'
c:\ace_reactor1\clientservice.h(30) : see reference to class template instantiation 'ACE_Message_Queue<class ACE_Null_Mutex,class ACE_Null_Condition>' being compiled
c:\ace_wrappers\ace\message_queue_t.h(589) : error C2079: 'not_empty_cond_' uses undefined class 'ACE_Null_Condition'
c:\ace_reactor1\clientservice.h(30) : see reference to class template instantiation 'ACE_Message_Queue<class ACE_Null_Mutex,class ACE_Null_Condition>' being compiled
c:\ace_wrappers\ace\message_queue_t.h(592) : error C2079: 'not_full_cond_' uses undefined class 'ACE_Null_Condition'
c:\ace_reactor1\clientservice.h(30) : see reference to class template instantiation 'ACE_Message_Queue<class ACE_Null_Mutex,class ACE_Null_Condition>' being compiled
看不出什么问题,好像在书上也是这么用的,调了一会,也没有成功,看看大家的意见 |
|