[专题讨论十一]★☆★ACE资源 安装 使用 研究 !★☆★

warton 2003-06-15 06:57:31
Building and Installing ACE on Win32 with Borland C++Builder
If you are building for a machine without a network card, you may want to check here first.

Uncompress the ACE distribution into a directory, where it will create an ACE_wrappers directory containing the source. The ACE_wrappers directory will be referred to as ACE_ROOT in the following steps -- so ACE_ROOT\ace would be C:\ACE_wrappers\ace if you uncompressed into the root directory.


Create a file called config.h in the ACE_ROOT\ace directory that contains:

#include "ace/config-win32.h"

If you are building for Windows NT 4, Windows 2000, or Windows XP, then you can start without any more changes. If you are building on Windows 9x/Me, then you should add the line

#define ACE_HAS_WINNT4 0

before the #include statement in ACE_ROOT\ace\config.h and it will turn off some WinNT/Win2K-specific code in ACE.


Open a Command Prompt (DOS Box).


Set the ACE_ROOT environment variable to point to the ACE_wrappers directory. For example:

set ACE_ROOT=C:\ACE_wrappers


Set the BCBVER environment vairable to the main version of your BCB compiler. Currently 4, 5, and 6 are supported. For example:

set BCBVER=5


Change to the ACE_ROOT\ace directory.


Build release DLLs for ACE by going:

make -f Makefile.bor


You can build several different versions of ACE by setting environment variables before you run make:

Set the environment variable below to build a debug version of ACE
set DEBUG=1

Set the environment variable below to build a static version of ACE
set STATIC=1

Set the environment variable below to build a unicode version of ACE
set UNICODE=1

Set the environment variable below to build a version of ACE with Codeguard support. Should only be used when DEBUG is also set
set CODEGUARD=1

Set the environment variable below to build a version of ACE that is build against the VCL-compatible run-time library. This can only be used with BCB version 4
set PASCAL=1

You can then start the build with the command
make -f Makefile.bor

You may also enable the options by passing them as command line options to make, for example:
make -f Makefile.bor -DDEBUG -DPASCAL


Optionally install the ACE header files, libraries and executables for use in your applications. Here we are installing them into C:\ACETAO:

make -f Makefile.bor -DINSTALL_DIR=C:\ACETAO install


These instructions do not cover all possible build configurations. Please see http://www.tenermerx.com/tao_bcb/index.html for more detailed information on building and using ACE+TAO with Borland C++ Builder.
If you are using C++Builder 4, then the libraries built using the above instructions are intended for use with generic console or windows applications and they link against the corresponding C++ runtime library. VCL applications created using BCB4's RAD environment must link against the VCL-compatible (ie pascal-compatible) runtime library. To tell the difference between these libraries the VCL-compatible ones have a 'p' in the suffix (i.e., 'p' for pascal). To build VCL compatible libraries try

set PASCAL=1
make -f Makefile.bor

The Borland C++ Builder 4.0/5.0 port has been done by Jody Hagins and Christopher Kohlhoff.

ACE TESTS

The tests are located in ACE_ROOT\tests. You build the tests using the Makefile.bor file, that is:


make -f Makefile.bor
Once you build all the tests, you can run a perl script:


run_test.pl -ExeSubDir Dynamic\Release
or the the batch file:


run_tests.bat bor
in the tests directory to try all the tests. You need to make sure the ACE bin directory (in this case ACE_ROOT\bin\Dynamic\Release) is on the path before you try to run the tests.
...全文
106 46 打赏 收藏 转发到动态 举报
写回复
用AI写文章
46 条回复
切换为时间正序
请发表友善的回复…
发表回复
xumaojun 2010-06-24
  • 打赏
  • 举报
回复
还不知道从哪里开始学习
zucc_bug 2010-06-23
  • 打赏
  • 举报
回复
关注,以后有用
963101 2003-08-19
  • 打赏
  • 举报
回复
sdf
常宁 2003-07-02
  • 打赏
  • 举报
回复
高手称不上,但是如果能帮得上忙的话,我一定尽力。
warton 2003-07-01
  • 打赏
  • 举报
回复
楼上想必一定是ACE的高手了,以后大家有问题都请教你了!:)
常宁 2003-07-01
  • 打赏
  • 举报
回复
ACE在Windows下有多个致命错误,比如是他的反应器在消息量大的时候会崩溃。用BC,VC都有问题,但是在linux下没事,问题我还没有找到,不过看起来ACE并不适合在Windows下,另外还有某些版本的ACE ACE_OS:fprintf有问题,不能写入文件,如果换成fprintf就没有问题,而这个毛病在linux下也没有问题。应该是封装的问题。我个人认为ACE并不适合在Windows下使用,如果想用,那就到linux或者unix下去发挥吧。因为用ACE出现的问题,我正在写一个通讯的Framework - ICE,基于跨平台技术,支持多种通讯方式,特别是支持智能socket等技术。可惜太大了,一个人忙不过来,有没有帮忙的?现在已经写了接近4000行,近20个class
常宁 2003-07-01
  • 打赏
  • 举报
回复
ACE在Windows下有一个致命错误,就是他的反应器在消息量大的时候会崩溃,问题我还没有找到,不过看起来ACE并不适合在Windows下,另外还有某些版本的ACE ACE_OS:fprintf有问题,不能写入文件,如果换成fprintf就没有问题,应该是封装的问题。我个人认为ACE并不适合在Windows下使用,如果想用,那就到linux或者unix下去发挥吧。因为用ACE出现的问题,我正在写一个通讯的Framework - ICE,基于跨平台技术,支持多种通讯方式,特别是支持智能socket等技术。可惜太大了,一个人忙不过来,有没有帮忙的?
networld2002 2003-06-30
  • 打赏
  • 举报
回复
学习
warton 2003-06-28
  • 打赏
  • 举报
回复
我还没有在VC下编译,那天有空了再试试!
Siney 2003-06-27
  • 打赏
  • 举报
回复
to warton

问题在于多个编译器都会设置路径(path),你制定其中任何一个(set BCBVER=n)都不能保证,他调用的make,linke,bcc32是你认为的那个编译器。而且最气人的是连接lib也有问题。
warton 2003-06-26
  • 打赏
  • 举报
回复
to domustdo(大头):听说,Adobe Reader使用了ACE开发,不知道是不是真的!
warton 2003-06-26
  • 打赏
  • 举报
回复
to Aweay:多个编程器有什么不同吗?
我也将了几个编程器呀!用CB编程时怎么没有问题?
Siney 2003-06-26
  • 打赏
  • 举报
回复
终于编译通过了,我又有一些经验了,如果安装了多个编译器的朋友遇到编译问题,可以问我啊,我搞2天终于解决了。
vc_hking 2003-06-26
  • 打赏
  • 举报
回复
关注
domustdo 2003-06-25
  • 打赏
  • 举报
回复
使用ACE库开发的通信软件都有哪些?谁能介绍一下?
m_pDelphi 2003-06-25
  • 打赏
  • 举报
回复
做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

做个记号---------

jiangningning 2003-06-25
  • 打赏
  • 举报
回复
我现在也在研究ACE,希望能和大家好好交流一下。
我是用VC编译的,很简单,但是在编译例子的时候,使用静态库还有一些问题,
那位大侠能帮忙解决一下吗
domustdo 2003-06-24
  • 打赏
  • 举报
回复
recompile,呵呵
domustdo 2003-06-24
  • 打赏
  • 举报
回复
的确,我这里编译了n久,不过幸好没有出错
ChengCheng2000 2003-06-24
  • 打赏
  • 举报
回复
编译时仔细阅读文档,按步就搬。就可以搞定了。。。
加载更多回复(26)

1,316

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder 网络及通讯开发
社区管理员
  • 网络及通讯开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧