C ++中的文件相关错误 [英] File Related Error in C++
本文介绍了C ++中的文件相关错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I entered this into terminal and I got an error message but I don't know how to solve this problem.
make -f makefile.osx USE_UPNP=-
llvm-g++ -c -g -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_IPV6=1 -DHAVE_BUILD_INFO -I"/Users/ethanguenther/verticoin/src" -I"/Users/ethanguenther/verticoin/src"/obj -I"/opt/local/include" -I"/opt/local/include/db48" -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
alert.cpp:5:10: fatal error: 'boost/foreach.hpp' file not found
#include < boost/foreach.hpp >
^
1 error generated.
make: *** [obj/alert.o] Error 1
推荐答案
您需要将路径传递给使用-I
选项来提升目录。
如果boost目录存在为/ users / boost
,您需要指定-I/ users
。
You need to pass the path to the boost directory with a-I
option.
If the boost directory exists as/users/boost
, you need to specify-I"/users"
.
这篇关于C ++中的文件相关错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文