当我尝试配置从位置Log4cpp CodeGit克隆的log4cpp时。
我观察到^ A& ^ #ifdef宏末尾的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
如果有人遇到此问题并解决了,请告诉我。
感谢。
答案 0 :(得分: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.