0

当我尝试配置从Log4cpp CodeGit位置克隆的 log4cpp 时。

我观察到 #ifdef 宏末尾的 ^A 和 ^B 字符,因此编译没有通过。

我遵循的步骤是
1) git clone git://git.code.sf.net/p/log4cpp/codegit log4cpp-codegit
2) ./autogen.sh
3) ./configure

输出文件的摘录包括/log4cpp/config.h

* Define to 1 if you have the <dlfcn.h> header file. */
#ifndef LOG4CPP_^A 
#define LOG4CPP_^A ^B 
#endif

/* Define to 1 if you have the `ftime' function. */
#ifndef LOG4CPP_^A 
#define LOG4CPP_^A ^B 
#endif

如果有人遇到此问题并已解决,请告诉我。

谢谢。

4

1 回答 1

0

抱歉,问题出在我使用的 autoconf 版本错误。

错误版本:

autoconf (GNU Autoconf) 2.69.117-1717-dirty
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

当前版本:

autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
于 2014-04-23T06:55:10.727 回答