简体   繁体   English

Mac OS High Sierra:在C ++中无法进行OS升级

[英]Mac OS High Sierra: OS upgrade fails make in C++

I could successfully make before I installed the High sierra Update 10.13.1 My make file has following configs: 在安装High sierra Update 10.13.1之前,我可以成功进行制作。我的制作文件具有以下配置:

CC = g++-7
CFLAGS = -Wall -O3 -fopenmp -Igzstream -Isrc -Isrc/models -std=c++0x
LDFLAGS = -lgomp -lgzstream -lz -lstdc++ -Lgzstream 

Error thrown is: 引发的错误是:

In file included from /usr/include/stdio.h:65:0,
                 from <REDACTED>,
                 from <REDACTED>:
/usr/include/zlib.h:663:46: error: expected initializer before '__AVAILABILITY_INTERNAL__MAC_10_13'
                                              __OSX_AVAILABLE_STARTING(__MAC_10_13,__IPHONE_11_0);
                                              ^

Taking a closer look at zlib.h at line 663: 仔细查看第663行的zlib.h:

ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm,
                                             Bytef *dictionary,
                                             uInt  *dictLength))
                                             __OSX_AVAILABLE_STARTING(__MAC_10_13,__IPHONE_11_0);

There are multiple lines that throw the same error, and they are all with the __OSX_AVAILABLE_STARTING I am not sure how to fix this. 有多行引发相同的错误,并且它们全都带有__OSX_AVAILABLE_STARTING我不确定如何解决此问题。 I reinstalled xcode command line tools using xcode-select --install 我使用xcode-select --install重新安装了xcode命令行工具

Bleh. eh

Reinstall gcc using brew reinstall gcc 使用brew reinstall gcc

And also PATH=/usr/local/bin:$PATH 还有PATH=/usr/local/bin:$PATH

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM