找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 3431|回复: 2

ACE_Local_Mutex未声明??

[复制链接]
发表于 2007-12-19 21:23:06 | 显示全部楼层 |阅读模式
Ubuntu6.06 + ACE5.4.7

ACE_Local_Mutex确实在Local_Tokens.h里声明了,为什么编译不过呢?
难道说5.4.7里面还没有ACE_Local_Mutex吗
  1. #include "ace/Local_Tokens.h"
  2. #include "ace/Log_Msg.h"
  3. int main(int , ACE_TCHAR*[])
  4. {
  5.         ACE_Local_Mutex a;
  6.         ACE_DEBUG((LM_ERROR, "What's wrong??????"));
  7.         return 0;
  8. }
复制代码
g++ -Wall a.cc -o a -lACE
a.cc: In function 'int main(int, ACE_TCHAR**)':
a.cc:6: error: 'ACE_Local_Mutex' was not declared in this scope
a.cc:6: error: expected `;' before 'a'
 楼主| 发表于 2007-12-19 21:23:15 | 显示全部楼层
头文件有宏定义,一般是宏定义的影响。你查查看。
 楼主| 发表于 2007-12-19 21:23:22 | 显示全部楼层
usually using ace-mutex is more efficient than ace-tokens.that's why it's taken out by default.
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

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

GMT+8, 2024-12-4 16:22 , Processed in 0.015303 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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