ACE
The
ADAPTIVE
Communication
Environment
https://download.dre.vanderbilt.edu/
http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#mingw
https://download.dre.vanderbilt.edu/
The latest micro release is ACE 7.0.2 and TAO 3.0.2 (ACE+TAO x.0.2), please use the links below to download it。
ACE是一個優秀的網絡開發庫,非常專業的。
1。下載下傳最新的ACE_TAO庫,代碼在網站上有。

2。解壓,并設定路徑變量。
ACE_ROOT=c:\src\ACE_wrapper
TAO_ROOT=c:\src\ACE_wrapper\tao
3。打開msys2,切換到 c:\src\ACE_wrapper\ace
make
4。make install INSTALL_PREFIX=c:\src\ace
5。切換到 c:\src\ACE_wrapper\tao
make
6。注意:make install 的時候把ACE_ROOT和TAO_ROOT修改一下,如下:
“\” 變為 "/"
具體的修改,參照如下:
- Install the MinGW tools (including the MinGW Development toolkit) into a common directory, say c:/mingw.
- Install the MSYS tools into a common directory, say c:/msys.
- Open a MSYS shell. Set your PATH environment variable so your MinGW's bin directory is first:
% export PATH=/c/mingw/bin:$PATH
- Add an ACE_ROOT environment variable pointing to the root of your ACE wrappers source tree:
% export ACE_ROOT=/c/work/mingw/ACE_wrappers
- Create a file called config.h in the $ACE_ROOT/ace directory that contains:
#include "ace/config-win32.h"
- Create a file called platform_macros.GNU in the $ACE_ROOT/include/makeinclude directory containing:
include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
In the above text, don't replace $(ACE_ROOT) with the actual directory, GNU make will take the value from the environment variable you defined previously.
If you lack Winsock 2, add the line
winsock2 = 0
before the previous one.
If you want to install ACE (using "make install") and want all the .pc files generated, set the installation prefix in platform_macros.GNU.
INSTALL_PREFIX=/c/ACE
- In the MSYS shell, change to the $ACE_ROOT/ace directory and run make:
% cd $ACE_ROOT/ace % make
This should create libACE.dll (the Win32 shared library) and libACE.dll.a (the Win32 import library for the DLL). Note that the name for the ACE DLL follows the MinGW convention, which itself resembles UNIX.
If you want static libs also, you may run:
% make static_libs_only=1
- Run make install:
% make install
- The same rules for Win32 search of DLLs apply for MinGW. If you want to run some ACE programs from the MSYS shell, you may need to add the directory for libACE.dll to your PATH:
% export PATH=/c/ work/mingw/ACE_wrappers/ace:$PATH