Most voted "gcc" questions
GCC is a set of programming language compilers produced by the GNU project to build a Unix-like operating system. It is part of the GNU and FSF operating system, and is one of the essential tools for keeping software free, as it allows compiling the source code into binary executables for the various common computer platforms. If the doubt is not about "GCC", do not use this tag.
Learn more…64 questions
Sort by count of
-
0
votes2
answers477
views -
0
votes1
answer95
viewsWhy does the code generate garbage at the beginning of the vector?
the following code generates an unexpected result, at the end of the loop the first positions of the vector are with stored garbage, someone can tell why this is happening, and where is the error?…
-
0
votes1
answer111
viewscrt*. or C files
What are the archives for crt1.o,crt0.o,crti.o e crtn.o in a program C. I know the extension .o has to do with object file, but what the cited files serve?
-
0
votes1
answer386
viewsCompile C Error in Gcc - Accentuation
Compiling the C code in GCC, and then running it. An accentuation error occurs: PROGRAM: #include <stdio.h> int main() { printf ("Bem Vindo ao Nosso Jogo de Adivinhação"); } Command Terminal:…
-
0
votes2
answers520
viewsWhat are gch files and how do they work?
I recently came across a file with the extension .gch in one of my projects, this occurred because I ended up passing a file .h to be compiled in gcc. $ gcc -c arquivo.h $ ls arquivo.c arquivo.h…
gccasked 5 years, 9 months ago Brumazzi DB 4,345 -
0
votes0
answers200
viewsError running program in C "No such file or directory"
I am trying to run a program in C, but an error occurs I take the following steps: gcc -c prog.c -o prog /.prog And it turns up: bash: /.prog: No such file or directory…
-
0
votes1
answer2942
viewsProblems with GCC on Windows 10
I am facing problems when changing IDE, I was told that DEVC++ contains a lot of bugs and by option I was already in the mood to try other IDE’s, so I decided to test Code::Blocks and Visual Studio…
-
0
votes0
answers126
views"Indefinite reference to`itoa' " message when trying to use itoia function
I found on some websites people talked about using the itoa function to convert an integer number into a string containing the number in binary format. Code example that should do this:…
-
0
votes1
answer581
viewsSegmentation failure in C language
Hi, I have a problem... The code only runs until a part after this appears: Falha de segmentação (imagem do núcleo gravada) Follow my program below: #include<stdio.h> #include<stdlib.h>…
-
0
votes1
answer104
viewsUse of the getline() function in C with Mingw
I created code for a library collection using Linux/GNU, and it’s working perfectly. However, I need to Compile code on Windows using GCC, and wanted to know if there is a method to use this…
-
0
votes1
answer97
viewsI’m having trouble compiling a simple C program
# include <stdio.h> int main(){ int y = 5; int *yPtr; printf("Address of y veriable: %x \n",&y); printf("Address stored in yPtr variable: %x \n", yPtr); printf("Value of y: %d\n", y);…
-
0
votes1
answer84
viewsMy code for the jug puzzle is not working
First of all, I want to thank everyone who reads my call for help. I’m pretty new to the C language, and I’m pretty sure I made a mistake, and I’m pretty sure I didn’t miss that code. I spent all…
-
-1
votes1
answer3351
viewsVisual Studio Code Extension: "Code Runner" does not compile C
I’m trying to run a code on C in the Visual Studio Code with the extent Code Runner but I’m not getting it. I’ve installed the Mingw correctly, I can verify it in cmd via g++ --version But I still…
-
-1
votes1
answer116
views"Segmentation fault" error while running C program on linux shell
I have the following program in C language: #include <stdio.h> #include <string.h> #include <stdlib.h> int main (int argc, char *argv[]){ FILE *p; char str[30], frase[]="Nome do…