搭建C++编译环境

news/2024/7/3 11:52:49

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

安装git,g++ gcc 并且升级到4.9版本,用premake 从vs工程 输出为makefile 等

--安装git
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git  


--安装g++
sudo apt-get install build-essential
sudo apt-get install g++-multilib
sudo apt-get install libc6 libc6-dev


--更新 G++ 不然编译不过
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get install g++-4.9

sudo apt-get install gcc-4.9-multilib
sudo apt-get install g++-4.9-multilib

--安装好之后  创建链接 到4.9版本 不然默认还是4.8
sudo su
cd ../../usr/bin
ln -s /usr/bin/g++-4.9 /usr/bin/g++ -f
ln -s /usr/bin/gcc-4.9 /usr/bin/gcc -f


--安装nginx
apt-get install libtool

 

转载于:https://my.oschina.net/kkkkkkkkkkkkk/blog/1603875


http://www.niftyadmin.cn/n/3311922.html

相关文章

php 登陆程序,PHP(10) 用户登录程序(版本2)

用户登录程序(版本2)今天,我们把我们上一篇博文中的小项目做一个升级版本!1、产生彩色的验证码在上一篇文中,我们产生了随机的验证码,但是我们在有的网站上看到的验证码是彩色的,那么,我们怎么来产生彩色的…

【语言处理与Python】3.5正则表达式的有益作用

提取字符块 #找到所有的无重叠的匹配指定的正则表达式re.findall(r’[aeiou]’,word)#看看一些文本中的两个或者两个以上的元音序列,并确定他们的相对频率wsfsorted((set(nltk.corpus.treebank.words()))fdnltk.FreqDist(vs for word in wsjfor vs in re.findall(r’…

yiic.php,执行yiic命令提示’php.exe’将YII添加到系统环境变量

还有个问题就是每次执行yiic命令时要把yiic的全路径打出来才行,比如我的yii框架在F:\myproject里面,我每次执行的时候都要F:\myproject\yii\framework\yiic webapp yiiblog我们可以把yiic也加入系统环境变量,加入以下代码:假如php.exe这个目录在E:\Server\phpF:\myproject\yii\…

cvs和svn的区别

1> cvs是不支持文件的复制 移动和重命名 而svn支持 2> cvs在网络中断等时 提交的部分文件也会生效 而svn当用户全部提交完变更的文件时 才会生效 否则直接回滚 变成最初状态 3> 版本控制上 对于一个文件foo.c 在cvs1.1 版本和1.2版本始终是不相同的 而svn中有可能相…

2018年哪项AI研究最紧迫?DeepMind联合创始人说是AI伦理

本文来自AI新媒体量子位(QbitAI)2018年,正火热的人工智能会朝什么方向发展? DeepMind联合创始人苏莱曼(Mustafa Suleyman)今天在《连线》上发表文章,给出了他心目中的答案。 苏莱曼在DeepMind主…

egojit介绍

姓名:Egojit 出生年月:1989-10-13 QQ:408365330 E-mail:egojitqq.com 这就是我和我对技术的认知:一直在追求技术的提升,从学习C开始爱上IT,从.NET走进IT行业。执迷于Windows内核开发&#xff0c…

java编写一个类显示出当前日期,Java惯用类库-实例操作-取得当前日期

import java.util.* ;// 导入需要的工具包class DateTime{// 以后直接通过此类就可以取得日期时间private Calendar calendar null ;// 声明一个Calendar对象,取得时间public DateTime(){// 构造方法中直接实例化对象this.calendar new GregorianCalendar() ;}pub…

易错java初级面试题

class A { void fun1() { System.out.println(fun2()); }int fun2() { return 123; } }public class B extends A { int fun2() { return 456; }public static void main(String argv[]) { A a; B b new B(); b.fun1(); a b; a.fun1(); } }执行结果:456 456 注…