A simple test code
#include <stdio.h>#include "ace/Log_Msg.h"#include "ace/OS_main.h"int main0() {cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!return 0;}int ACE_TMAIN(int arg,ACE_TCHAR *argv[]){ACE_DEBUG( (LM_DEBUG,ACE_TEXT("Hello\n")));return 0;}
Fc16 ace6.0.2 has been compiled, but it fails to be compiled after being upgraded to 6.1.2. It seems that this version is faulty.
Building Target: testinvoking: gcc C ++ linkerg ++-o "test ". /src/test. o-memory. /src/test. o: In function 'main':/home/flyspace/workspace/test/debug /.. /src/test. CPP: 24: Undefined reference to 'ace _ log_msg: last_error_adapter () '/home/flyspace/workspace/test/debug /.. /src/test. CPP: 24: Undefined reference to 'ace _ log_msg: instance () '/home/flyspace/workspace/test/debug /.. /src/test. CPP: 24: Undefined reference to 'ace _ log_msg: conditional_set (char const *, Int, Int, INT) '/home/flyspace/workspace/test/debug /.. /src/test. CPP: 24: Undefined reference to 'ace _ log_msg: log (ace_log_priority, char const *,...) 'collect2: LD returns 1 make: *** [test] Error 1
Downgrade to version 6.1.0 and pass the compilation again!
Check that the 6.1.2 version is correct!
I am so dizzy that I have spent a whole day!