tags:

views:

272

answers:

3

ACE_DEBUG declare #include< ace/Task.h > in source header file.I trace debug define by

ACE_DEBUG((LM_ERROR, "Reader pathSetOpen : %s ",pathSetOpen);

The string variable name "pathSetOpen" for show value still execute programs.But I cannot compile code. About ACE_DEBUG,It's macro for printing debug message.

Compile error code.

EnvTest.cpp:353:1: error: unterminated argument list invoking macro "ACE_DEBUG"

+2  A: 

You've forgot a closing parenthesis:

ACE_DEBUG((LM_ERROR, "Reader pathSetOpen : %s ",pathSetOpen));
Johannes Schaub - litb
A: 

Ho!,Sorry.I mistake.T_T.Sorry.

Chatsiri.rat
A: 
Hi i got an error while building the ACE_DEBUG code.
My code is 

        ACE_DEBUG ((LM_INFO, ACE_TEXT ("%IGood Morning\n")));
And i got error as

undefined reference to ACE_Log_Msg::last_error_adapter()' undefined reference toACE_Log_Msg::instance()' undefined reference to ACE_Log_Msg::conditional_set(char const*, int, int, int)' undefined reference toACE_Log_Msg::log(ACE_Log_Priority, char const*, ...)'

karthi