构建solc时,如何解决错误(未定义对'boost :: ~~~~的引用)?

时间:2020-06-01 07:44:00

标签: boost makefile cmake solidity

我正在构建SOLC版本0.4.26。 我知道有最新版本0.68,但我需要0.4.26。

问题是尝试构建solc时出现错误

错误消息看起来像

Map

我什么都没修好。刚刚在https://github.com/ethereum/solidity/releases?after=v0.5.16

上下载了Solidity源代码

我尝试

Map(openxlsx::write.xlsx, listDF, paste0(names(listDF), '.xlsx'))

我不知道要解决此错误...

cmake的结果是这样的

[  0%] Built target solidity_BuildInfo.h
[  4%] Built target jsoncpp-project
[  9%] Built target devcore
[ 17%] Built target evmasm
[ 58%] Built target solidity
[ 59%] Built target libsolc
[ 60%] Linking CXX executable solc
CMakeFiles/solc.dir/CommandLineInterface.cpp.o:CommandLineInterface.cpp:function dev::solidity::CommandLineInterface::createFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&): error: undefined reference to 'boost::filesystem::path::filename() const'
........
........
../libsolidity/libsolidity.a(CompilerStack.cpp.o):CompilerStack.cpp:function dev::solidity::CompilerStack::absolutePath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const: error: undefined reference to 'boost::filesystem::path::operator/=(boost::filesystem::path const&)'

0 个答案:

没有答案