Ace 6.1.2 compilation problems

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.