关于setdest的问题

来源:互联网 发布:网络信息安全班会 编辑:程序博客网 时间:2024/06/05 16:04
出现的问题:
$ makeg++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@  -o setdest.osetdest.ccIn file included from ../../../config.h:54,                 from setdest.h:5,                 from setdest.cc:57:../../../autoconf.h:85: error: namespace `CPP_NAMESPACE' undeclaredmake: *** [setdest.o] Error 1
解决办法:
一.在autoconf.h中,添加一行CPP_NAMESPACE的定义,即
#ifdef __cplusplus#define HAVE_STL 1#define CPP_NAMESPACE std //添加了这一行#define CPP_REQUIRES_NAMESPACE 1#ifdef CPP_REQUIRES_NAMESPACEusing namespace CPP_NAMESPACE;#endif /* CPP_NAMESPACE */#endif /* __cplusplus */
二 就是官网上提供的方法,很详细,这里就不再罗嗦,地址:点击打开链接