apue3.e (基于maxos 10.9)

在Google搜到你的问题,我也碰到同样的问题(5分钟前),然后通过其他的搜索结果找到答案,不知道你是否跟我一样,出现以下的错误:

... 
clang: error: unknown argument: '-R.' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make[1]: *** [t4] Error 1
make: *** [all] Error 1

如果是的话,解决方法就是:
编辑apue.3e/db/Makefile,把

ifeq "$(PLATFORM)" "macos"

EXTRALD=-R.

改成:

ifeq "$(PLATFORM)" "macos"

EXTRALD=-R

也就是说,把“-R.”改成“-R”,去掉最后的“.”,然后返回到apue.3e目录,再次执行make all,完成,祝成功!

原文地址:https://www.cnblogs.com/thrillerz/p/4307684.html