c++ - mac cannot find the file after installing with brew
大家讲道理
大家讲道理 2017-05-16 13:20:46
0
2
603

I used homebrew to install gflags, glog and other packages, and then an error occurred when compiling a project, saying that the gflags.h file could not be found. Then I wrote a program test, and it was the same, as shown in the figure below.

But I found gflags myself in the /usr/local/include/ path, as shown in the figure below.

The problem now is that the installation file under this standard path is not included. Please ask Daniel how to solve it! ! ! ! !

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all (2)
过去多啦不再A梦

export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/local/include"

    黄舟

    gcc -I /usr/local/include

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!