在macOS上编译gpsim导致“错误:'long long类型名称'无效”

问题描述 投票:0回答:1

this question之后,我正在尝试在macOS上编译this code。我跑了>

/System/Volumes/Data/usr/local/Cellar/qt/5.14.1/bin/qmake
build_XX文件夹内,然后单击make。但是,出现编译错误:

../src/gpsim/protocol.cc:79:8:错误:'long long type-name'无效uint long long i = ascii2uint64(buffer,digits);^产生1个错误。make:*** [build / release / protocol.o]错误1

根据建议,here,我添加了

#ifdef __APPLE__ #include <sys/types.h> #endif // __APPLE__

protocol.cc文件的顶部,无济于事。如果您能帮助我了解问题所在以及如何解决,我将不胜感激。感谢您的提前支持。

下面的问题,我试图在macOS上编译此代码。我在build_XX文件夹内成功运行了/System/Volumes/Data/usr/local/Cellar/qt/5.14.1/bin/qmake,然后执行了。但是,我...

c++ macos compiler-errors clang
1个回答
1
投票
没有uint long long这样的类型。
© www.soinside.com 2019 - 2024. All rights reserved.