[Ace] Ace Program Development in Windows and Linux

Source: Internet
Author: User

Ace Program Development in Windows and Linux

(1) Ace Program Development in Windows

Tool: VS 2005 ace

(1) Development Environment Settings

(A) Open VS 2005, tool --> Option --> project and solution --> VC ++ directory

Add the following content:

Executable File: D: \ ACE-5.8.0 \ ace_wrappers \ bin

Include File: D: \ ACE-5.8.0 \ ace_wrappers
Library files: D: \ ACE-5.8.0 \ ace_wrappers \ Lib
Source files: D: \ ACE-5.8.0 \ ace_wrappers
Or:
First configure the environment variable ace_root ==> D: \ ACE-5.8.0 \ ace_wrappers
Then write the following content in the VC ++ directory:
Executable File: $ (ace_root) Bin
Include File: $ (ace_root)
Library files: $ (ace_root) lib

Source files: $ (ace_root)

(B) Right-click the project, select Properties, linker, input, and add related items to the additional dependency project.

DLL debug corresponds to aced. Lib
DLL release corresponds to ace. Lib
Static library debug corresponds to acesd. Lib
Static library release corresponds to aces. Lib
Mfc dll debug corresponds to acemfcd. Lib
Mfc dll release corresponds to acemfc. Lib

If a link error occurs during compilation, change the above dependency to an absolute path, for example, D: \ ACE-5.8.0 \ ace_wrappers \ Lib \ aced. Lib.

(2) related error highlights

When the program is compiled successfully and runs, the following error occurs: "unable to start this program because the computer loses aced. dll ".
This is a cainiao-level error, but you can also record it to help beginners:

Solution: copy the aced. dll under D: \ ACE-5.8.0 \ ace_wrappers \ Lib to the DEBUG directory of the project and put it together with the EXE file.

(2) Ace Program Development in Linux

After writing the program, makefile can be written as follows:

Ace_home =/opt/ace-5.8.0

G ++-O *. cpp-I $ (ace_home)/include-L $(ace_home)/lib/-release-5.8

As we all know, there is no need to say more.

Http://book.csai.cn/group.asp? Cmd = show & gid = 3 & pid = 2760

Related Article

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.