Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
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
Posted

1 solution

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".
 
Share this answer
 
Comments
ethanguenther 11-Mar-14 0:00am    
Can you give me an example of how to correct this? I am new to this and I don't know how to solve it exactly. I downloaded boost and then re-ran the same function (make -f makefile.osx USE_UPNP=-) and got a new error.

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
In file included from alert.cpp:8:
In file included from /Users/ethanguenther/verticoin/src/alert.h:13:
In file included from /Users/ethanguenther/verticoin/src/util.h:30:
In file included from /Users/ethanguenther/verticoin/src/netbase.h:10:
/Users/ethanguenther/verticoin/src/serialize.h:281:10: fatal error: 'gmpxx.h' file
not found
#include <gmpxx.h>
^
1 error generated.
make: *** [obj/alert.o] Error 1
«_Superman_» 11-Mar-14 1:11am    
It's basically the same error.
File not found for a #include means that you're not specifying the path where the file exists with the -I option.
ethanguenther 13-Mar-14 16:46pm    
oh ok. it says to include gmpxx.h but it got cut off next to the #include. would the code look like this

-I gmpxx.h make -f makefile.osx USE_UPNP=-
«_Superman_» 14-Mar-14 1:37am    
No. -I is to specify the directory.
Assume gmpxx.h exists in the /usr/ethan/inc directory.
If you do a #include <gmpxx.h> in your code, you would need to use -I /usr/ethan/inc for the make command line.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900