peakzhang 发表于 2008-9-18 23:30:39

Linux下怎样关闭ACE_DEBUG ?

如题,我觉得在Makefile中定义NDEBUG应该就可以了,但是我的makefile是按照<<The ACE programer's guide>>做的,不知道怎么改。makefile如下:
BIN   = hello_ace
BUILD = $(VBIN)
SRC = $(addsuffix .cpp,$(BIN))
LDFLAGS = -L$(PROJ_ROOT)/lib
#---------------------------------------------------
#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
实际上我在Win32上做了个Release版,在Preprocessor中定义了NDEBUG,但仍然没有将ACE_DEBUG关闭,望各位朋友能够帮忙!!!

peakzhang 发表于 2008-9-18 23:30:48

makefile中加一行:

CPPFLAGS += -DACE_NLOGGING
页: [1]
查看完整版本: Linux下怎样关闭ACE_DEBUG ?