gcc: add long flag (#6182)

beep
CleanMachine1 2021-07-02 20:38:46 +01:00 committed by GitHub
parent c5b0987e78
commit 4c0aa1ac0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View File

@ -5,15 +5,15 @@
- Kompiliere mehrere Quellcodedateien zu einer ausführbaren Datei:
`gcc {{pfad/zu/datei1.c}} {{pfad/zu/datei2.c}} -o {{pfad/zu/binärdatei}}`
`gcc {{pfad/zu/datei1.c}} {{pfad/zu/datei2.c}} --output {{pfad/zu/binärdatei}}`
- Erlaube Warnungen und debug-Symbole in der Ausgabedatei:
`gcc {{pfad/zu/datei.c}} -Wall -Og -o {{pfad/zu/binärdatei}}`
`gcc {{pfad/zu/datei.c}} -Wall -Og --output {{pfad/zu/binärdatei}}`
- Inkludiere Bibliotheken aus anderen Verzeichnissen:
`gcc {{pfad/zu/datei.c}} -o {{pfad/zu/binärdatei}} -I{{pfad/zu/headerdatei}} -L{{pfad/zu/bibliothek1}} -l{{pfad/zu/bibliothek2}}`
`gcc {{pfad/zu/datei.c}} --output {{pfad/zu/binärdatei}} -I{{pfad/zu/headerdatei}} -L{{pfad/zu/bibliothek1}} -l{{pfad/zu/bibliothek2}}`
- Kompiliere Quellcodedateien zu Assemblerinstruktionen:

View File

@ -5,15 +5,15 @@
- Compilar múltiplos arquivos de código fonte, produzindo um arquivo executável:
`gcc {{arquivo_fonte1.c}} {{arquivo_fonte2.c}} -o {{arquivo_executável}}`
`gcc {{arquivo_fonte1.c}} {{arquivo_fonte2.c}} --output {{arquivo_executável}}`
- Habilitar avisos durante a compilação:
`gcc {{arquivo_fonte.c}} -Wall -Og -o {{arquivo_executável}}`
`gcc {{arquivo_fonte.c}} -Wall -Og --output {{arquivo_executável}}`
- Incluir bibliotecas de um local diferente:
`gcc {{arquivo_fonte.c}} -o {{arquivo_executável}} -I{{caminho/para/header}} -L{{caminho/para/biblioteca}} -l{{nome_biblioteca}}`
`gcc {{arquivo_fonte.c}} --output {{arquivo_executável}} -I{{caminho/para/header}} -L{{caminho/para/biblioteca}} -l{{nome_biblioteca}}`
- Compilar o código fonte para instruções Assembler:

View File

@ -5,15 +5,15 @@
- Compile multiple source files into executable:
`gcc {{source1.c}} {{source2.c}} -o {{executable}}`
`gcc {{source1.c}} {{source2.c}} --output {{executable}}`
- Allow warnings, debug symbols in output:
`gcc {{source.c}} -Wall -Og -o {{executable}}`
`gcc {{source.c}} -Wall -Og --output {{executable}}`
- Include libraries from a different path:
`gcc {{source.c}} -o {{executable}} -I{{header_path}} -L{{library_path}} -l{{library_name}}`
`gcc {{source.c}} --output {{executable}} -I{{header_path}} -L{{library_path}} -l{{library_name}}`
- Compile source code into Assembler instructions: