找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 4347|回复: 2

编译的一个小问题

[复制链接]
发表于 2008-1-14 21:15:13 | 显示全部楼层 |阅读模式
出差在外地,在写一篇关于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
        
        
        
        
        看不出什么问题,好像在书上也是这么用的,调了一会,也没有成功,看看大家的意见
 楼主| 发表于 2008-1-14 21:15:27 | 显示全部楼层
要加

#include "ace/Synch.h"
发表于 2011-2-21 14:29:04 | 显示全部楼层
俺也出现这个问题了,google到论坛里面了。
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

Archiver|手机版|小黑屋|ACE Developer ( 京ICP备06055248号 )

GMT+8, 2024-5-15 21:18 , Processed in 0.011304 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表