odb -d mysql --generate-query --generate-schema person.hxx
In file included from /usr/local/Cellar/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/include/c++/4.9.3/bits/postypes.h:40:0,
from /usr/local/Cellar/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/include/c++/4.9.3/bits/char_traits.h:40,
from /usr/local/Cellar/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/include/c++/4.9.3/string:40,
from <standard-odb-prologue>:7:
/usr/local/Cellar/odb-2.4.0-i686-macosx/lib/odb/i686-apple-darwin10/include/c++/4.9.3/cwchar:44:19: fatal error: wchar.h: No such file or directory
#include <wchar.h>
答案 0 :(得分:0)
尝试使用{p> 3重新安装this link中所示的XCode命令行工具
xcode-select --install
今天,这对我帮助编译了在Mac OS X Catalina上安装了brew的gcc-9程序,我昨天对其进行了更新。
Mac OS更新通常会弄乱标题的位置,这也可能是您的情况。
另请参阅this question