解决办法: 编译的时候加上 “-I + 头文件地址” 如:
g++ test_boost.cpp -o test_boost -I /opt/homebrew/Cellar/boost/1.80.0/include
参考:
boost headers not found issue in mac os x
View default include path of C headers in Mac OS X by gcc -v?
解决办法: 编译的时候加上 “-I + 头文件地址” 如:
g++ test_boost.cpp -o test_boost -I /opt/homebrew/Cellar/boost/1.80.0/include
参考:
boost headers not found issue in mac os x
View default include path of C headers in Mac OS X by gcc -v?