配置环境
wget https://web.stanford.edu/class/cs144/vm_howto/setup_dev_env.sh
chmod +x setup_dev_env.sh
./setup_dev_env
安装
sudo apt-get install doxygen clang-format
sudo apt install cmake
测试
git clone https://gitee.com/kangyupl/sponge
git checkout -b master origin/master
mkdir build && cd build
cmake ..
make format
make -j4 && make check_lab0
出现以下报错
/home/ubuntu/cs144/sponge/libsponge/util/parser.cc:36:13: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
ret <<= 8;
^ ~
解决方法:
将 ret <<=8;
换成 ret = ret << 8
即可正常运行
牛蛙牛蛙%%%
只是搭建了个环境而已QAQ