Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Window_Control
- 엑셀
- Pandas
- Multi Processing
- WPF
- datetime
- 절대경로
- windows form
- nvidia 삭제
- Tensor Board
- Python
- xlsx
- keras
- MySQL
- openpyxl
- ipdisk
- C#
- SQL
- Import
- Nvidia 깨짐
- 화면 안나옴
- Ubuntu 18.04_2
- 상대경로
- DataAnalysis
- 시간
- 기초
- 시작 시 프로그램 실행
- Tensor Board Image
- ubuntu
- json
Archives
- Today
- Total
Kminseo
Ubuntu에서 vscode를 사용하는 개발환경 구축 본문
Ubuntu에서 vscode를 사용하는 개발환경 구축
- 컴파일러 설치하기확인하기 위해
$ gcc -help
로 체크해보기대충 뭐가 나온다. $ sudo apt-get install build-essential
- vscode 설치
[vscode 주소]https://code.visualstudio.com/
에서 deb 파일 을 설치$ sudo dpkg -i '파일명'
으로 설치 가능
귀찮으면 ubuntu software center
에서 vscode를 검색해서 설치가 가능하다.
- C, C++ 컴파일용 플로그인 설치
Ctrl + Shift + X
를 눌러 확장플로그인 검색창에 C++을 검색하면C/C++
확장 플러그인 설치
- 작업 환경 구성
Ctrl + Shift + E
눌러 탐색창으로 VSCode 프로젝트를 구성할 작업폴더 지정- 작업표시줄에서
Terminal
>Configure Default Build Task
>C/C++:g++ build active file
- tasks.json 파일이 생성되며, 아래 코드를
복사
+붙여넣기
```
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "g++ build active file",
"command": "/usr/bin/g++",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "/usr/bin"
},
"problemMatcher": [
"$gcc"
],
"group": "build"
},
{
"type": "shell",
"label": "g++ build active file",
"command": "/usr/bin/g++",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "/usr/bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
```
- 빌드 및 실행
#include<iostream> int main() { std::cout<<"hello"<<std::endl; return 0; }
F5
를 눌러 실행을 해줍니다.
[참조] Youtube : https://www.youtube.com/watch?v=QbWe-qHEOfc
[참조] VJ:code : https://yjcode.tistory.com/1?category=811393
'기타' 카테고리의 다른 글
Tensor Board 사용방법 (0) | 2019.12.11 |
---|---|
Ubuntu 그래픽 문제 해결 (1) | 2019.11.16 |
fatal error: ros/ros.h: No such file or directory (0) | 2019.10.02 |
Eigen 관련 오류 및 설치방법 (0) | 2019.10.02 |
18.04_2에서 우클릭으로 메모장 생성 안뜰때 (0) | 2019.08.09 |
Comments