tips of ACE

tips of ACE

1、打开ACE的Trace开关
make CFLAGS=-DACE_NTRACE=0
2、在Fedora 6,gcc4.1环境下,在platform_macros.GNU中先定义如下语句
no_hidden_visibility = 1

3、makefile example of ACE:
BIN  =  testlog
FILES 
=  testlog
SRC
=  $(addsuffix .cpp,$(FILES))
OBJ
=  $(addsuffix .o,$(FILES))
BUILD   
=  $(VBIN)
LIBS 
=  # - lACE
LDFLAGS 
=  # - L$(ACE_ROOT) / lib
CFLAGS
+=- DACE_NTRACE = 0
CXXFLAGS
+=
#
---------------------------------------------------
#Include macros 
and  targets
#
---------------------------------------------------
include $(ACE_ROOT)
/ include / makeinclude / wrapper_macros.GNU
include $(ACE_ROOT)
/ include / makeinclude / macros.GNU
include $(ACE_ROOT)
/ include / makeinclude / rules.common.GNU
include $(ACE_ROOT)
/ include / makeinclude / rules.nonested.GNU
include $(ACE_ROOT)
/ include / makeinclude / rules.bin.GNU
include $(ACE_ROOT)
/ include / makeinclude / rules.local.GNU
note: must set ACE_ROOT environment to the location of ACE_wrappers
the makefile automatic link the ACE lib libACE.so

4、compile ACEXML library,your config.h must similiar this:
#define ACE_GCC_HAS_TEMPLATE_INSTANTIATION_VISIBILITY_ATTRS 1
#incluede "ace/config-...h"

你可能感兴趣的:(tips of ACE)