From 171bdd5a51ccd457ab2677cfe787eef10587ad9b Mon Sep 17 00:00:00 2001 From: Rui Alves Date: Mon, 14 Oct 2019 19:29:48 +0100 Subject: [PATCH] g++: add pt_BR translation (#3402) --- pages.pt_BR/common/g++.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages.pt_BR/common/g++.md diff --git a/pages.pt_BR/common/g++.md b/pages.pt_BR/common/g++.md new file mode 100644 index 0000000000..6ab82899b3 --- /dev/null +++ b/pages.pt_BR/common/g++.md @@ -0,0 +1,21 @@ +# gplusplus + +> Compilador de arquivos de código fonte C++. +> Parte do GCC (GNU Compiler Collection). +> Mais informações: . + +- Compilar um arquivo de código fonte para um binário executável: + +`g++ {{arquivo_fonte.cpp}} -o {{arquivo_executável}}` + +- Compilar mostrando todos os erros e avisos: + +`g++ {{arquivo_fonte.cpp}} -Wall -o {{arquivo_executável}}` + +- Compilar utilizando um padrão específico da linguagem (C++98/C++11/C++14/C++17): + +`g++ {{arquivo_fonte.cpp}} -std={{standard_linguagem}} -o {{arquivo_executável}}` + +- Compilar incluindo bibliotecas localizadas em um local diferente do arquivo de código fonte: + +`g++ {{arquivo_fonte.cpp}} -o {{arquivo_executável}} -I{{caminho/para/header}} -L{{caminho/para/biblioteca}} -l{{nome_biblioteca}}` \ No newline at end of file