张静茹作者
7年2个月前IP:江苏
863660
15楼

> main.cpp:8:19: fatal error: variant: No such file or directory

> compilation terminated.

> Makefile:167: recipe for target 'main.o' failed

> make: *** [main.o] Error 1


安装g ++ - 7; 例如,如果ubuntu

sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y 

sudo apt-get update 

sudo apt-get install g++-7




add-apt-repository: command not found

解决方法

apt-get install software-properties-common python-software-properties



评论
文号 / 863660

千古风流
名片专栏发私信
学术分 1
总主题 146 帖总回复 1873 楼拥有证书:进士 学者 机友 笔友
注册于 2010/12/30 03:32:26最后登录 2026/06/20 19:33:53
主体类型:个人
所属领域:无
认证方式:手机号
IP归属地:0

个人简介

暂未填写
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的