ACE_Local_Mutex未声明??
Ubuntu6.06 + ACE5.4.7ACE_Local_Mutex确实在Local_Tokens.h里声明了,为什么编译不过呢?
难道说5.4.7里面还没有ACE_Local_Mutex吗
#include "ace/Local_Tokens.h"
#include "ace/Log_Msg.h"
int main(int , ACE_TCHAR*[])
{
ACE_Local_Mutex a;
ACE_DEBUG((LM_ERROR, "What's wrong??????"));
return 0;
}
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' 头文件有宏定义,一般是宏定义的影响。你查查看。 usually using ace-mutex is more efficient than ace-tokens.that's why it's taken out by default.
页:
[1]