Questions tagged as 'gcc'

1
answer

Optimization with GCC

Recently I've been wondering if it's possible for the compiler with some flag optimization, avoid copying two arrays to the .rodata section? Thus, memory addresses would be the same, eg const char str[7] = "string"; const char str1...
asked by 31.10.2018 / 03:13
1
answer

C ++: Compile using Batch

I'm using cmd to program, and I want to make a batch file that automates the build process. I want it to compile the files using the g++ -c ./scr/Nome.cpp -o ./obj/Nome.o -std=c++1z This should be done for all the .cpp files that hav...
asked by 07.08.2017 / 05:34
1
answer

How to install mingw-w64-x86_64-GCC with MSYS2 if I get the message that mingw64 is already installed on the system

I'm trying to install GCC on my Windows workstation to do new testing using GCC and some C compiled programs that can be ported to Windows. I have already used several versions of GCC for Windows, some based on CygWin others in Mingw itself,...
asked by 20.10.2016 / 14:59
1
answer

How to compile c ++ with SFML library within the project itself

Hello, people who like to program. I'm having a problem that until now researching in the donkey dad (Google) I could not solve. I am doing a little game as part of the evaluation of programming language 1. I do not know how to properly link (co...
asked by 30.09.2015 / 03:10
1
answer

Compiling with g ++

I am compiling a sample code provided on the GLFW bookstore website as follows: g++ main.cpp -o main.exe glfw3dll.a
asked by 25.07.2015 / 12:16
0
answers

How to install JFlex, Yacc and GCC to create a compiler on windows 8.1?

I need to add in the path of windows also, as I will do in notepad, so to compile directly in cmd, I need to append to windows path.     
asked by 30.11.2017 / 03:23
0
answers

How to compile gettext in MSYS2 using x86_64-w64-mingw32-gcc

I'm doing a series of recompilations to set up a custom QEMU for my microcontroller studies, I succeeded in compiling a few packages up to gettext, after reading all the instruction files in their directory and fetching on the internet advice an...
asked by 24.10.2016 / 13:53
1
answer

Struct defined in the .c auxiliary file (with definition of functions and structs) is not recognized in main

I'm doing a project in C, and I have 3 files: 1 .c containing the definitions of functions and structs. 1 .h containing the prototypes of these functions and structs ae1 .c that contains main. In the .c with the definitions, I define...
asked by 15.07.2016 / 17:05
1
answer

Targeting failure in C language

Hi, I have a problem ... The code only runs to a part after this appears: Falha de segmentação (imagem do núcleo gravada) Here's my program below: #include<stdio.h> #include<stdlib.h> #include<string.h> int seleciona_in...
asked by 13.11.2018 / 20:16
1
answer

Files crt * .o in C

What are the crt1.o,crt0.o,crti.o e crtn.o files in a C program? I know that the .o extension has to do with the object file, but what do the files cited serve?     
asked by 19.04.2017 / 16:50